diff options
author | Simon Hafner <hafnersimon@gmail.com> | 2015-04-01 06:33:24 +0500 |
---|---|---|
committer | Simon Hafner <hafnersimon@gmail.com> | 2015-04-01 06:33:24 +0500 |
commit | a339cb5ed5e2389ad77ee05d2e553cbf43f279b2 (patch) | |
tree | 91182bc92f2421f95e618fdc2d0375022f3839eb /compiler/semstmts.nim | |
parent | 06b7892ed0878f06c54fa178a07d9844b4fa760f (diff) | |
parent | 165619552a7ad0fa4f594963ee0441dd711edfd4 (diff) | |
download | Nim-a339cb5ed5e2389ad77ee05d2e553cbf43f279b2.tar.gz |
Merge branch 'devel' into jpoirier-realtimeGCTest
Diffstat (limited to 'compiler/semstmts.nim')
-rw-r--r-- | compiler/semstmts.nim | 2 |
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) |