From a6d60f9c8de1dfc6e40f7c73bcdb403dd69d97be Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Fri, 15 Nov 2013 10:03:22 +0000 Subject: fixes in the C runtime to avoid warnings when compiling on MacOS --- src/runtime/c/gu/string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/runtime/c/gu/string.c') diff --git a/src/runtime/c/gu/string.c b/src/runtime/c/gu/string.c index 995812fbf..8c9afd6e7 100644 --- a/src/runtime/c/gu/string.c +++ b/src/runtime/c/gu/string.c @@ -179,7 +179,7 @@ gu_string_is_prefix(GuString s1, GuString s2) if (len1 > len2) return false; - for (size_t len = len1; len--; len > 0) { + for (size_t len = len1; len > 0; len--) { if (*s1 != *s2) return false; -- cgit v1.2.3