summaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/c/gu/string.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/c/gu/string.c b/src/runtime/c/gu/string.c
index fb002d167..ba7eaf0c6 100644
--- a/src/runtime/c/gu/string.c
+++ b/src/runtime/c/gu/string.c
@@ -475,9 +475,9 @@ gu_string_cmp(GuString s1, GuString s2)
if (sz1 == i && i == sz2)
break;
- if (sz1 < i)
+ if (sz1 <= i)
return -1;
- if (i > sz2)
+ if (i >= sz2)
return 1;
if (src1[i] > src2[i])