performance: Cast strlen return with int.

This commit is contained in:
Daniel Juyung Seo 2015-02-23 10:46:53 +09:00
parent 263801f018
commit 992468c9cc
2 changed files with 2 additions and 2 deletions

View File

@ -573,7 +573,7 @@ _xml_attr_data(void *data, const char *key, const char *value)
tmp = strdup(globalGraphical.model_path);
a = strrchr(tmp,'.');
format = malloc(sizeof (char) * (strlen(a) - 1));
for (i = 0; i <= strlen(a) - 1; i++)
for (i = 0; i <= (int)strlen(a) - 1; i++)
format[i] = a[i + 1];
if (strcmp(format, "md2") || strcmp(format, "obj") || !strcmp(format, "ply"))
{

View File

@ -530,7 +530,7 @@ _load_mesh(void *data, Evas_Object *obj, void *event_info)
tmp = strdup(event_info);
a = strrchr(tmp,'.');
format = malloc(sizeof (char) * (strlen(a) - 1));
for (i = 0; i <= strlen(a) - 1; i++)
for (i = 0; i <= (int)strlen(a) - 1; i++)
format[i] = a[i + 1];
if (!strcmp(format, "md2"))
{