fixes a minor codegen issue where name mangling could produce an identifier used by the codegen; refs #5437
This commit is contained in:
parent
fb37d13f46
commit
4c5ecb46b0
4 changed files with 10 additions and 10 deletions
|
|
@ -413,7 +413,7 @@ proc genProcParams(m: BModule, t: PType, rettype, params: var Rope,
|
|||
# this fixes the 'sort' bug:
|
||||
if param.typ.kind == tyVar: param.loc.s = OnUnknown
|
||||
# need to pass hidden parameter:
|
||||
addf(params, ", NI $1Len$2", [param.loc.r, j.rope])
|
||||
addf(params, ", NI $1Len_$2", [param.loc.r, j.rope])
|
||||
inc(j)
|
||||
arr = arr.sons[0]
|
||||
if t.sons[0] != nil and isInvalidReturnType(t.sons[0]):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue