fix cmpIgnoreStyle bug (#16392)
This commit is contained in:
parent
90dbb6f3fb
commit
78acf1becb
2 changed files with 12 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue