fix warning: use size_t when comparing against strlen()

This commit is contained in:
Michael Stapelberg 2014-06-12 21:24:29 +02:00
parent 5beaea3034
commit 807ff6b10d
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ Rect rect_add(Rect a, Rect b) {
*/ */
__attribute__ ((pure)) bool name_is_digits(const char *name) { __attribute__ ((pure)) bool name_is_digits(const char *name) {
/* positive integers and zero are interpreted as numbers */ /* positive integers and zero are interpreted as numbers */
for (int i = 0; i < strlen(name); i++) for (size_t i = 0; i < strlen(name); i++)
if (!isdigit(name[i])) if (!isdigit(name[i]))
return false; return false;