summaryrefslogtreecommitdiff
path: root/src/runtime/c/gu/string.c
diff options
context:
space:
mode:
authorkr.angelov <kr.angelov@gmail.com>2013-09-17 19:05:54 +0000
committerkr.angelov <kr.angelov@gmail.com>2013-09-17 19:05:54 +0000
commit99985843d1bacb32fceff7a988b6648eef3c3922 (patch)
treed8249b7ec1cdd36b4dd8bbbd0b277f9a19c74666 /src/runtime/c/gu/string.c
parent237c2af7fce29c9de48538eb18daf6ce582eda17 (diff)
bugfix in the ordering of strings in libgu
Diffstat (limited to 'src/runtime/c/gu/string.c')
-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])