aboutsummaryrefslogtreecommitdiff
path: root/st.c
diff options
context:
space:
mode:
authorpancake@nopcode.org <unknown>2010-07-08 17:34:02 +0200
committerpancake@nopcode.org <unknown>2010-07-08 17:34:02 +0200
commit5f4fb527ced90426bbe95565b52c81461d031b2e (patch)
treef291605235c24e27c898a7ece110090c71c9b7b8 /st.c
parent1552e2f1b959aac64ee44eed3204e6daf074a3ee (diff)
downloadst-5f4fb527ced90426bbe95565b52c81461d031b2e.tar.gz
st-5f4fb527ced90426bbe95565b52c81461d031b2e.tar.bz2
fix gcc warnings
Diffstat (limited to 'st.c')
-rwxr-xr-xst.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/st.c b/st.c
index 6b525c3..c64c25e 100755
--- a/st.c
+++ b/st.c
@@ -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';