From 30c683800e77046fa31289a81a8612704e948a44 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Mon, 21 Jan 2008 07:59:06 +0000 Subject: [PATCH] Fix warnings. --- src/conio/sdl_con.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/conio/sdl_con.c b/src/conio/sdl_con.c index 869d22e74b..023297b007 100644 --- a/src/conio/sdl_con.c +++ b/src/conio/sdl_con.c @@ -1328,7 +1328,7 @@ unsigned int sdl_get_char_code(unsigned int keysym, unsigned int mod, unsigned i * we're not going to trust the keysym * value since we can't. */ - if(keysym <= 127 && !(mod & KMOD_META|KMOD_ALT|KMOD_CTRL|KMOD_SHIFT)) + if(keysym <= 127 && !(mod & (KMOD_META|KMOD_ALT|KMOD_CTRL|KMOD_SHIFT))) return(keysym); /* Give up. It's not working out for us. */ @@ -1673,7 +1673,7 @@ int sdl_video_event_thread(void *data) FREE_AND_NULL(sdl_pastebuf); } else - sdl_pastebuf=(unsigned char *)malloc(strlen(sdl_copybuf)+1); + sdl_pastebuf=(char *)malloc(strlen(sdl_copybuf)+1); if(sdl_pastebuf!=NULL) strcpy(sdl_pastebuf,sdl_copybuf); /* Set paste buffer */ -- GitLab