edje: Fix warnings introduced in recent fix
authorJean-Philippe Andre <jp.andre@samsung.com>
Thu, 8 Jun 2017 07:04:33 +0000 (16:04 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Thu, 8 Jun 2017 07:16:11 +0000 (16:16 +0900)
See b9b0177d5e0f2b3a03f77e04c64de534b2c786ac
See d3420cd35c692a808c0a626c8e54a0c85af3a4d4

src/bin/edje/edje_cc_parse.c
src/bin/elementary/elm_prefs_cc_parse.c

index 9592994..f03adf5 100644 (file)
@@ -388,7 +388,7 @@ next_token(char *p, char *end, char **new_p, int *delim)
              tmpstr = alloca(l + 1);
              strncpy(tmpstr, p, l);
              tmpstr[l] = 0;
-             if (l >= sizeof(fl))
+             if (l >= (int)sizeof(fl))
                {
                   ERR("Line too long: %i chars: %s", l, tmpstr);
                   err_show();
index e3002fc..7305dbc 100644 (file)
@@ -296,7 +296,7 @@ next_token(char *p, char *end, char **new_p, int *delim)
                }
              strncpy(tmpstr, p, l);
              tmpstr[l] = 0;
-             if (l >= sizeof(fl))
+             if (l >= (int)sizeof(fl))
                {
                   ERR("Line too long: %i chars: %s", l, tmpstr);
                   exit(-1);