[hackers] [st] Fix stupid bug in tdefcolor returning -1 in unsigned function || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Mon, 25 Nov 2013 14:11:24 +0100

commit 53474391bcf2122921d27356a70e6da3c78d058e
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
Date: Mon Nov 25 14:09:53 2013 +0100

    Fix stupid bug in tdefcolor returning -1 in unsigned function
    
    k0ga misktook applying patch of others. Sorry guys!!!!

diff --git a/st.c b/st.c
index fb084b1..8f1b8d8 100644
--- a/st.c
+++ b/st.c
_AT_@ -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);
_AT_@ -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;
Received on Mon Nov 25 2013 - 14:11:24 CET

This archive was generated by hypermail 2.3.0 : Mon Nov 25 2013 - 14:12:12 CET