fixes a potential endless loop
This commit is contained in:
parent
3fafd546d5
commit
01b2728ec8
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ proc initCandidateSymbols(c: PContext, headSymbol: PNode,
|
||||||
while symx != nil:
|
while symx != nil:
|
||||||
if symx.kind in filter:
|
if symx.kind in filter:
|
||||||
result.add((symx, o.lastOverloadScope))
|
result.add((symx, o.lastOverloadScope))
|
||||||
symx = nextOverloadIter(o, c, headSymbol)
|
symx = nextOverloadIter(o, c, headSymbol)
|
||||||
if result.len > 0:
|
if result.len > 0:
|
||||||
initCandidate(c, best, result[0].s, initialBinding, result[0].scope)
|
initCandidate(c, best, result[0].s, initialBinding, result[0].scope)
|
||||||
initCandidate(c, alt, result[0].s, initialBinding, result[0].scope)
|
initCandidate(c, alt, result[0].s, initialBinding, result[0].scope)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue