]> git.armaanb.net Git - st.git/commitdiff
Fix stupid bug in tdefcolor returning -1 in unsigned function
authorRoberto E. Vargas Caballero <k0ga@shike2.com>
Mon, 25 Nov 2013 13:09:53 +0000 (14:09 +0100)
committerRoberto E. Vargas Caballero <k0ga@shike2.com>
Mon, 25 Nov 2013 13:09:53 +0000 (14:09 +0100)
k0ga misktook applying patch of others. Sorry guys!!!!

st.c

diff --git a/st.c b/st.c
index fb084b10de1247dfdaca3d0c6c342460fe0c77c1..8f1b8d8cadd6848b111ce1abad9a2105b75c63b5 100644 (file)
--- a/st.c
+++ b/st.c
@@ -379,7 +379,7 @@ static void tsetdirtattr(int);
 static void tsetmode(bool, bool, int *, int);
 static void tfulldirt(void);
 static void techo(char *, int);
-static uint32_t tdefcolor(int *, int *, int);
+static int32_t tdefcolor(int *, int *, int);
 static void tselcs(void);
 static void tdeftran(char);
 static inline bool match(uint, uint);
@@ -1666,7 +1666,7 @@ tdeleteline(int n) {
        tscrollup(term.c.y, n);
 }
 
-uint32_t
+int32_t
 tdefcolor(int *attr, int *npar, int l) {
        int32_t idx = -1;
        uint r, g, b;