fix sdl warning and cosmetic change.

fix warning on unsigned x signed type comparison.

cosmetic: use EINA_C_ARRAY_LENGTH().



SVN revision: 82897
This commit is contained in:
Gustavo Sverzut Barbieri 2013-01-16 19:47:51 +00:00
parent 4d310f96ff
commit 869966a136
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
struct _ecore_sdl_keys_s
{
int code;
unsigned int code;
const char* name;
const char* compose;
};

View File

@ -137,7 +137,7 @@ _ecore_sdl_event_key(SDL_Event *event, double timestamp)
ev->key = NULL;
ev->compose = NULL;
for (i = 0; i < sizeof(keystable) / sizeof(struct _ecore_sdl_keys_s); ++i)
for (i = 0; i < EINA_C_ARRAY_LENGTH(keystable); ++i)
if (keystable[i].code == event->key.keysym.sym)
{
ev->keyname = keystable[i].name;