summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2013-02-19 00:45:57 +0100
committerAraq <rumpf_a@web.de>2013-02-19 00:45:57 +0100
commita8aa1e1dcadabe3c968b111a3523506088feb130 (patch)
tree6c3b542f03fa31d78bbab09339ec2dc04527ab1a
parent970edbe98d838d5e510025c997c541db70fbd987 (diff)
downloadNim-a8aa1e1dcadabe3c968b111a3523506088feb130.tar.gz
fixes #286
-rwxr-xr-xcompiler/semexprs.nim2
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