Xinqi Bao's Git
projects
/
st.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
Fix signess of tdefcolor
[st.git]
/
st.c
diff --git
a/st.c
b/st.c
index
9cdd969
..
1b01353
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-362,7
+362,7
@@
static void tsetdirtattr(int);
static void tsetmode(bool, bool, int *, int);
static void tfulldirt(void);
static void techo(char *, int);
static void tsetmode(bool, bool, int *, int);
static void tfulldirt(void);
static void techo(char *, int);
-static
u
long tdefcolor(int *, int *, int);
+static long tdefcolor(int *, int *, int);
static inline bool match(uint, uint);
static void ttynew(void);
static void ttyread(void);
static inline bool match(uint, uint);
static void ttynew(void);
static void ttyread(void);
@@
-1626,7
+1626,7
@@
tdeleteline(int n) {
tscrollup(term.c.y, n);
}
tscrollup(term.c.y, n);
}
-
u
long
+long
tdefcolor(int *attr, int *npar, int l) {
long idx = -1;
uint r, g, b;
tdefcolor(int *attr, int *npar, int l) {
long idx = -1;
uint r, g, b;
@@
-1677,7
+1677,7
@@
tdefcolor(int *attr, int *npar, int l) {
void
tsetattr(int *attr, int l) {
int i;
void
tsetattr(int *attr, int l) {
int i;
-
u
long idx;
+ long idx;
for(i = 0; i < l; i++) {
switch(attr[i]) {
for(i = 0; i < l; i++) {
switch(attr[i]) {