Fix warning.

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3520 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
Meep-Eep
2010-01-25 19:16:57 +00:00
parent 2141f0cb0d
commit 6d1d492fac
+2 -2
View File
@@ -35,7 +35,7 @@
static int kbdhead=0, kbdtail=0; static int kbdhead=0, kbdtail=0;
static UniChar kbdbuf[KBDBUFSIZE]; static UniChar kbdbuf[KBDBUFSIZE];
static UniChar lastchar; static UniChar lastchar;
static int num_keys = 0; static unsigned int num_keys = 0;
static int *kbdstate = NULL; static int *kbdstate = NULL;
// Holds all SDL keys +1 for holding invalid values // Holds all SDL keys +1 for holding invalid values
@@ -355,7 +355,7 @@ ProcessInputEvent (const SDL_Event *Event)
SDLKey k = Event->key.keysym.sym; SDLKey k = Event->key.keysym.sym;
UniChar map_key = Event->key.keysym.unicode; UniChar map_key = Event->key.keysym.unicode;
if (k < 0 || k > num_keys) if (k > num_keys)
k = num_keys; // for unknown keys k = num_keys; // for unknown keys
if (Event->type == SDL_KEYDOWN) if (Event->type == SDL_KEYDOWN)