changeset: 83:30a6475eff94
tag: tip
user: pancake_AT_nopcode.org
date: Thu Jul 08 17:34:02 2010 +0200
files: st.c
description:
fix gcc warnings
diff -r 3ebdb536b938 -r 30a6475eff94 st.c
--- a/st.c Thu Jul 08 16:31:41 2010 +0200
+++ b/st.c Thu Jul 08 17:34:02 2010 +0200
@@ -1104,7 +1104,7 @@
if(base.mode & ATTR_GFX)
for(i = 0; i < len; i++)
- s[i] = gfx[s[i]];
+ s[i] = gfx[(int)s[i]];
XSetFont(xw.dis, dc.gc, base.mode & ATTR_BOLD ? dc.bfont->fid : dc.font->fid);
XDrawImageString(xw.dis, xw.buf, dc.gc, winx, winy, s, len);
@@ -1225,7 +1225,7 @@
shift = e->state & ShiftMask;
len = XLookupString(e, buf, sizeof(buf), &ksym, NULL);
- if(customkey = kmap(ksym))
+ if((customkey = kmap(ksym)))
ttywrite(customkey, strlen(customkey));
else if(len > 0) {
buf[sizeof(buf)-1] = '\0';
Received on Thu Jul 08 2010 - 17:35:41 CEST
This archive was generated by hypermail 2.2.0 : Thu Jul 08 2010 - 17:36:03 CEST