diff options
author | pancake@nopcode.org <unknown> | 2010-07-08 17:34:02 +0200 |
---|---|---|
committer | pancake@nopcode.org <unknown> | 2010-07-08 17:34:02 +0200 |
commit | 9e8f5f1348e3a38d5c0d90bddcf40c9c03caa098 (patch) | |
tree | f291605235c24e27c898a7ece110090c71c9b7b8 /st.c | |
parent | 499c70cda048e9d62ab9085efb3a6d484c64bf37 (diff) | |
download | st-9e8f5f1348e3a38d5c0d90bddcf40c9c03caa098.tar.gz st-9e8f5f1348e3a38d5c0d90bddcf40c9c03caa098.tar.bz2 st-9e8f5f1348e3a38d5c0d90bddcf40c9c03caa098.zip |
fix gcc warnings
Diffstat (limited to 'st.c')
-rwxr-xr-x | st.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1104,7 +1104,7 @@ xdraws(char *s, Glyph base, int x, int y, int len) { 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 @@ kpress(XEvent *ev) { 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'; |