diff options
author | flywind <43030857+xflywind@users.noreply.github.com> | 2020-12-18 09:29:36 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-18 16:29:36 +0100 |
commit | 78acf1becb20a26637d0ac03bd8fcc6296aaa0f8 (patch) | |
tree | b54ae90c308a5257eb6361716c07c5378f4f41ef /lib/core | |
parent | 90dbb6f3fbab684afad729903ff322a9792e1706 (diff) | |
download | Nim-78acf1becb20a26637d0ac03bd8fcc6296aaa0f8.tar.gz |
fix cmpIgnoreStyle bug (#16392)
Diffstat (limited to 'lib/core')
-rw-r--r-- | lib/core/typeinfo.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/core/typeinfo.nim b/lib/core/typeinfo.nim index fff237718..c15f6dc1f 100644 --- a/lib/core/typeinfo.nim +++ b/lib/core/typeinfo.nim @@ -372,6 +372,7 @@ proc cmpIgnoreStyle(a, b: cstring): int {.noSideEffect.} = else: result = c var i = 0 var j = 0 + if a[0] != b[0]: return 1 while true: while a[i] == '_': inc(i) while b[j] == '_': inc(j) # BUGFIX: typo |