diff --git a/src/bin/elementary/test_genlist.c b/src/bin/elementary/test_genlist.c index bf6ba4c9d9..46901c110f 100644 --- a/src/bin/elementary/test_genlist.c +++ b/src/bin/elementary/test_genlist.c @@ -5587,7 +5587,7 @@ test_genlist_show_tree(void *data, else max = 2000; for (i = 0; i <= max; i++) { - if (i % (max / 20) == 0) + if (i % ((max / 20) ? 0 : 1) == 0) gli = elm_genlist_item_append(gl, api->itc1, (void*)(uintptr_t)i, gli, ELM_GENLIST_ITEM_TREE, NULL, NULL); else elm_genlist_item_append(gl, api->itc1, (void*)(uintptr_t)i, gli, ELM_GENLIST_ITEM_NONE, NULL, NULL);