forked from enlightenment/efl
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:
parent
4d310f96ff
commit
869966a136
|
@ -3,7 +3,7 @@
|
|||
|
||||
struct _ecore_sdl_keys_s
|
||||
{
|
||||
int code;
|
||||
unsigned int code;
|
||||
const char* name;
|
||||
const char* compose;
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue