eolian/generator: use size of the array instead of fixed int

This commit is contained in:
Daniel Kolesa 2014-08-28 09:49:57 +01:00
parent 94f9d106c8
commit 1eb870e3d3
1 changed files with 1 additions and 1 deletions

View File

@ -297,7 +297,7 @@ eo_header_generate(const Eolian_Class *class, Eina_Strbuf *buf)
}
int i;
for (i = 0; i < 2; i++)
for (i = 0; i < (int)(sizeof(ftype_order) / sizeof(Eolian_Function_Type)); i++)
{
itr = eolian_class_functions_get(class, ftype_order[i]);
EINA_ITERATOR_FOREACH(itr, fid)