summaryrefslogtreecommitdiff
path: root/src/runtime/c/gu/string.c
diff options
context:
space:
mode:
authorkr.angelov <kr.angelov@gmail.com>2013-11-15 10:03:22 +0000
committerkr.angelov <kr.angelov@gmail.com>2013-11-15 10:03:22 +0000
commita6d60f9c8de1dfc6e40f7c73bcdb403dd69d97be (patch)
tree579ddd62b40cc487c2e7a4d581a946d641a70f60 /src/runtime/c/gu/string.c
parentd997df2864a29986d7146aa4dc69d9be879718cc (diff)
fixes in the C runtime to avoid warnings when compiling on MacOS
Diffstat (limited to 'src/runtime/c/gu/string.c')
-rw-r--r--src/runtime/c/gu/string.c2
1 files changed, 1 insertions, 1 deletions
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;