From 9f02f3453df3c5283b7eccc8678a9891a0e05d71 Mon Sep 17 00:00:00 2001 From: Daniel Juyung Seo Date: Mon, 23 Feb 2015 10:46:53 +0900 Subject: [PATCH] performance: Cast strlen return with int. --- src/examples/perfomance/graphical.c | 2 +- src/examples/perfomance/perfomance.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/examples/perfomance/graphical.c b/src/examples/perfomance/graphical.c index 10bc775..27b7061 100644 --- a/src/examples/perfomance/graphical.c +++ b/src/examples/perfomance/graphical.c @@ -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")) { diff --git a/src/examples/perfomance/perfomance.c b/src/examples/perfomance/perfomance.c index d054b29..53ade9d 100644 --- a/src/examples/perfomance/perfomance.c +++ b/src/examples/perfomance/perfomance.c @@ -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")) { -- 2.7.4