diff options
author | Araq <rumpf_a@web.de> | 2013-02-19 00:45:57 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2013-02-19 00:45:57 +0100 |
commit | a8aa1e1dcadabe3c968b111a3523506088feb130 (patch) | |
tree | 6c3b542f03fa31d78bbab09339ec2dc04527ab1a | |
parent | 970edbe98d838d5e510025c997c541db70fbd987 (diff) | |
download | Nim-a8aa1e1dcadabe3c968b111a3523506088feb130.tar.gz |
fixes #286
-rwxr-xr-x | compiler/semexprs.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim index 48fe5b4d7..1fcd7105d 100755 --- a/compiler/semexprs.nim +++ b/compiler/semexprs.nim @@ -1655,7 +1655,7 @@ proc semCaseExpr(c: PContext, caseStmt: PNode): PNode = proc fixImmediateParams(n: PNode): PNode = # XXX: Temporary work-around until we carry out # the planned overload resolution reforms - for i in 1 .. <n.len: + for i in 1 .. <safeLen(n): if n[i].kind == nkDo: n.sons[i] = n[i][bodyPos] result = n |