summaryrefslogtreecommitdiff
path: root/src/lib/ecore_sdl
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-16 19:47:51 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-16 19:47:51 +0000
commit869966a136e721138eb8503de5c3dac778d8d2e6 (patch)
treed0d0b3a3f7edcd8c25311782a09cfb8a4e28046a /src/lib/ecore_sdl
parent4d310f96ffe8525cd4771203a39f16b83967170a (diff)
fix sdl warning and cosmetic change.
fix warning on unsigned x signed type comparison. cosmetic: use EINA_C_ARRAY_LENGTH(). SVN revision: 82897
Diffstat (limited to 'src/lib/ecore_sdl')
-rw-r--r--src/lib/ecore_sdl/Ecore_Sdl_Keys.h2
-rw-r--r--src/lib/ecore_sdl/ecore_sdl.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ecore_sdl/Ecore_Sdl_Keys.h b/src/lib/ecore_sdl/Ecore_Sdl_Keys.h
index 4d0b60b854..4e298d77ea 100644
--- a/src/lib/ecore_sdl/Ecore_Sdl_Keys.h
+++ b/src/lib/ecore_sdl/Ecore_Sdl_Keys.h
@@ -3,7 +3,7 @@
3 3
4struct _ecore_sdl_keys_s 4struct _ecore_sdl_keys_s
5{ 5{
6 int code; 6 unsigned int code;
7 const char* name; 7 const char* name;
8 const char* compose; 8 const char* compose;
9}; 9};
diff --git a/src/lib/ecore_sdl/ecore_sdl.c b/src/lib/ecore_sdl/ecore_sdl.c
index 4ebf6e92b7..ec1f29cd85 100644
--- a/src/lib/ecore_sdl/ecore_sdl.c
+++ b/src/lib/ecore_sdl/ecore_sdl.c
@@ -137,7 +137,7 @@ _ecore_sdl_event_key(SDL_Event *event, double timestamp)
137 ev->key = NULL; 137 ev->key = NULL;
138 ev->compose = NULL; 138 ev->compose = NULL;
139 139
140 for (i = 0; i < sizeof(keystable) / sizeof(struct _ecore_sdl_keys_s); ++i) 140 for (i = 0; i < EINA_C_ARRAY_LENGTH(keystable); ++i)
141 if (keystable[i].code == event->key.keysym.sym) 141 if (keystable[i].code == event->key.keysym.sym)
142 { 142 {
143 ev->keyname = keystable[i].name; 143 ev->keyname = keystable[i].name;