From: Michael Stapelberg Date: Thu, 12 Jun 2014 19:24:29 +0000 (+0200) Subject: fix warning: use size_t when comparing against strlen() X-Git-Tag: 4.8~12 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=807ff6b10dd3d4c4be5a986414381a6773f77af6;p=i3%2Fi3 fix warning: use size_t when comparing against strlen() --- diff --git a/src/util.c b/src/util.c index 83a2d57b..de36d4aa 100644 --- a/src/util.c +++ b/src/util.c @@ -54,7 +54,7 @@ Rect rect_add(Rect a, Rect b) { */ __attribute__ ((pure)) bool name_is_digits(const char *name) { /* 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])) return false;