Fixes #5452
This commit is contained in:
parent
e5fd37375e
commit
e213b120ab
1 changed files with 1 additions and 1 deletions
|
|
@ -181,7 +181,7 @@ proc mangle*(name: string): string =
|
||||||
of '_':
|
of '_':
|
||||||
# we generate names like 'foo_9' for scope disambiguations and so
|
# we generate names like 'foo_9' for scope disambiguations and so
|
||||||
# disallow this here:
|
# disallow this here:
|
||||||
if i < name.len-1 and name[i+1] in Digits:
|
if i > 0 and i < name.len-1 and name[i+1] in Digits:
|
||||||
discard
|
discard
|
||||||
else:
|
else:
|
||||||
add(result, c)
|
add(result, c)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue