edje: Fix warnings introduced in recent fix

See b9b0177d5e
See d3420cd35c
This commit is contained in:
Jean-Philippe Andre 2017-06-08 16:04:33 +09:00
parent 9dd997f389
commit cebfc8d808
2 changed files with 2 additions and 2 deletions

View 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();

View 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);