summaryrefslogtreecommitdiff
path: root/src/bin/eolian
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2014-08-28 09:49:57 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2014-08-28 09:49:57 +0100
commit1eb870e3d340d6f75163b68ab2d89363bb6ac42c (patch)
tree4b2667584a4a51db0c14073a73ad9c5bb18ee082 /src/bin/eolian
parent94f9d106c8e0480434caa9dd3342b237dcf6722e (diff)
eolian/generator: use size of the array instead of fixed int
Diffstat (limited to 'src/bin/eolian')
-rw-r--r--src/bin/eolian/eo_generator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/eolian/eo_generator.c b/src/bin/eolian/eo_generator.c
index 4d0f838eba..759fe2917d 100644
--- a/src/bin/eolian/eo_generator.c
+++ b/src/bin/eolian/eo_generator.c
@@ -297,7 +297,7 @@ eo_header_generate(const Eolian_Class *class, Eina_Strbuf *buf)
297 } 297 }
298 298
299 int i; 299 int i;
300 for (i = 0; i < 2; i++) 300 for (i = 0; i < (int)(sizeof(ftype_order) / sizeof(Eolian_Function_Type)); i++)
301 { 301 {
302 itr = eolian_class_functions_get(class, ftype_order[i]); 302 itr = eolian_class_functions_get(class, ftype_order[i]);
303 EINA_ITERATOR_FOREACH(itr, fid) 303 EINA_ITERATOR_FOREACH(itr, fid)