diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2017-03-20 10:55:20 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-03-20 10:56:15 +0100 |
commit | 01b2728ec8a7830c0e034a482b47c030f99eeb49 (patch) | |
tree | b319827c51a45ab20f509b32417758895da5c24e /compiler | |
parent | 3fafd546d5a8d9f41ac4ecbe0b154b2adde09305 (diff) | |
download | Nim-01b2728ec8a7830c0e034a482b47c030f99eeb49.tar.gz |
fixes a potential endless loop
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/semcall.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semcall.nim b/compiler/semcall.nim index 3a43c63b2..ffa940291 100644 --- a/compiler/semcall.nim +++ b/compiler/semcall.nim @@ -44,7 +44,7 @@ proc initCandidateSymbols(c: PContext, headSymbol: PNode, while symx != nil: if symx.kind in filter: result.add((symx, o.lastOverloadScope)) - symx = nextOverloadIter(o, c, headSymbol) + symx = nextOverloadIter(o, c, headSymbol) if result.len > 0: initCandidate(c, best, result[0].s, initialBinding, result[0].scope) initCandidate(c, alt, result[0].s, initialBinding, result[0].scope) |