diff options
author | Roberto E. Vargas Caballero <k0ga@shike2.com> | 2013-11-25 14:09:53 +0100 |
---|---|---|
committer | Roberto E. Vargas Caballero <k0ga@shike2.com> | 2013-11-25 14:09:53 +0100 |
commit | 53474391bcf2122921d27356a70e6da3c78d058e (patch) | |
tree | 55b32e1e20f5b1d7a8aae94a4b90ac0383beaf58 | |
parent | 1fe0a5f39a8755da4cd16e92f2ea00676d9ee3ca (diff) | |
download | st-patched-53474391bcf2122921d27356a70e6da3c78d058e.tar.bz2 st-patched-53474391bcf2122921d27356a70e6da3c78d058e.tar.xz st-patched-53474391bcf2122921d27356a70e6da3c78d058e.zip |
Fix stupid bug in tdefcolor returning -1 in unsigned function
k0ga misktook applying patch of others. Sorry guys!!!!
-rw-r--r-- | st.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -379,7 +379,7 @@ static void tsetdirtattr(int); | |||
379 | static void tsetmode(bool, bool, int *, int); | 379 | static void tsetmode(bool, bool, int *, int); |
380 | static void tfulldirt(void); | 380 | static void tfulldirt(void); |
381 | static void techo(char *, int); | 381 | static void techo(char *, int); |
382 | static uint32_t tdefcolor(int *, int *, int); | 382 | static int32_t tdefcolor(int *, int *, int); |
383 | static void tselcs(void); | 383 | static void tselcs(void); |
384 | static void tdeftran(char); | 384 | static void tdeftran(char); |
385 | static inline bool match(uint, uint); | 385 | static inline bool match(uint, uint); |
@@ -1666,7 +1666,7 @@ tdeleteline(int n) { | |||
1666 | tscrollup(term.c.y, n); | 1666 | tscrollup(term.c.y, n); |
1667 | } | 1667 | } |
1668 | 1668 | ||
1669 | uint32_t | 1669 | int32_t |
1670 | tdefcolor(int *attr, int *npar, int l) { | 1670 | tdefcolor(int *attr, int *npar, int l) { |
1671 | int32_t idx = -1; | 1671 | int32_t idx = -1; |
1672 | uint r, g, b; | 1672 | uint r, g, b; |