summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2018-03-05 13:38:32 +0100
committerAraq <rumpf_a@web.de>2018-03-05 13:38:32 +0100
commit15e044416f53f3d87d53a74618b2fc4bb471eceb (patch)
tree5c06c4e13bde1e8b6b3c14d86e1d5abd21f76d3e /lib
parent8572085cc721a17801b8e7bfdd61d661ef4cc98c (diff)
downloadNim-15e044416f53f3d87d53a74618b2fc4bb471eceb.tar.gz
fixes #7291
Diffstat (limited to 'lib')
-rw-r--r--lib/system/sysstr.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system/sysstr.nim b/lib/system/sysstr.nim
index 31a59c0c0..5bf90c895 100644
--- a/lib/system/sysstr.nim
+++ b/lib/system/sysstr.nim
@@ -30,7 +30,7 @@ proc cmpStrings(a, b: NimString): int {.inline, compilerProc.} =
     if result == 0:
       result = a.len - b.len
   else:
-    result = 0
+    result = a.len - b.len
 
 proc eqStrings(a, b: NimString): bool {.inline, compilerProc.} =
   if a == b: return true