This commit is contained in:
Andreas Rumpf 2019-07-05 07:26:06 +02:00 • committed by GitHub
commit 28c9c062a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 22 additions and 7 deletions

View file

@ -292,7 +292,7 @@ proc forallElements(c: var TLiftCtx; t: PType; body, x, y: PNode) =
let whileLoop = genWhileLoop(c, i, x)
let elemType = t.lastSon
fillBody(c, elemType, whileLoop.sons[1], x.at(i, elemType),
y.at(i, elemType))
y.at(i, elemType))
addIncStmt(c, whileLoop.sons[1], i)
body.add whileLoop