summaryrefslogtreecommitdiff
path: root/src/edje_externals/elm_entry.c
diff options
context:
space:
mode:
authorMike McCormack <mikem@ring3k.org>2011-11-16 06:19:00 +0000
committerMike McCormack <mikem@ring3k.org>2011-11-16 06:19:00 +0000
commitbab86329776b14971c7e1dd520d1bd2d393df26c (patch)
tree55a2f4d1800c5fce4ee218af407270341be7a1fb /src/edje_externals/elm_entry.c
parentb3d92bb7a19a358dda1df977c42c9c8f219813bf (diff)
Fix GET_CHOICES macro
SVN revision: 65286
Diffstat (limited to 'src/edje_externals/elm_entry.c')
-rw-r--r--src/edje_externals/elm_entry.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/edje_externals/elm_entry.c b/src/edje_externals/elm_entry.c
index d4d51b98e..7998f8170 100644
--- a/src/edje_externals/elm_entry.c
+++ b/src/edje_externals/elm_entry.c
@@ -25,8 +25,8 @@ typedef struct _Elm_Params_Entry
25 25
26#define CHOICE_GET(CHOICES, STR) \ 26#define CHOICE_GET(CHOICES, STR) \
27 unsigned int i; \ 27 unsigned int i; \
28 for (i = 0; i < sizeof(CHOICES); i++) \ 28 for (i = 0; i < sizeof(CHOICES)/sizeof (CHOICES)[0]; i++) \
29 if (strcmp(STR, CHOICES[i]) == 0) \ 29 if (strcmp((STR), (CHOICES)[i]) == 0) \
30 return i 30 return i
31 31
32 32