performance: Cast strlen return with int.
authorDaniel Juyung Seo <seojuyung2@gmail.com>
Mon, 23 Feb 2015 01:46:53 +0000 (10:46 +0900)
committerDaniel Juyung Seo <seojuyung2@gmail.com>
Mon, 23 Feb 2015 01:46:53 +0000 (10:46 +0900)
src/examples/perfomance/graphical.c
src/examples/perfomance/perfomance.c

index 10bc775d480259cabec7f2bd3319d87f4516237d..27b70610973a9cb05e95807f48ec3876332318e4 100644 (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"))
                {
index d054b29e95bd62bfaaa1a4b86cec1f03e882c112..53ade9d2b138e5e15d123a6cbf51ba1403088144 100644 (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"))
           {