summary refs log tree commit diff stats
path: root/compiler/semstmts.nim
diff options
context:
space:
mode:
authorSimon Hafner <hafnersimon@gmail.com>2015-04-01 06:33:24 +0500
committerSimon Hafner <hafnersimon@gmail.com>2015-04-01 06:33:24 +0500
commita339cb5ed5e2389ad77ee05d2e553cbf43f279b2 (patch)
tree91182bc92f2421f95e618fdc2d0375022f3839eb /compiler/semstmts.nim
parent06b7892ed0878f06c54fa178a07d9844b4fa760f (diff)
parent165619552a7ad0fa4f594963ee0441dd711edfd4 (diff)
downloadNim-a339cb5ed5e2389ad77ee05d2e553cbf43f279b2.tar.gz
Merge branch 'devel' into jpoirier-realtimeGCTest
Diffstat (limited to 'compiler/semstmts.nim')
-rw-r--r--compiler/semstmts.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim
index ae0cbd84f..7263b21b9 100644
--- a/compiler/semstmts.nim
+++ b/compiler/semstmts.nim
@@ -1281,7 +1281,7 @@ proc semStmtList(c: PContext, n: PNode, flags: TExprFlags): PNode =
       var tryStmt = newNodeI(nkTryStmt, n.sons[i].info)
       var body = newNodeI(nkStmtList, n.sons[i].info)
       if i < n.sonsLen - 1:
-        body.sons = n.sons[(i+1)..(-1)]
+        body.sons = n.sons[(i+1)..n.len-1]
       tryStmt.addSon(body)
       tryStmt.addSon(deferPart)
       n.sons[i] = semTry(c, tryStmt)