wip
This commit is contained in:
parent
1ae5ba2536
commit
30b098fcaf
6 changed files with 10 additions and 8 deletions
|
|
@ -165,7 +165,7 @@ proc genGotoState(p: BProc, n: PNode) =
|
|||
statesCounter = n[1].intVal
|
||||
let prefix = if n.len == 3 and n[2].kind == nkStrLit: n[2].strVal.rope
|
||||
else: rope"STATE"
|
||||
for i in 0 .. statesCounter:
|
||||
for i in 0i64 .. statesCounter:
|
||||
lineF(p, cpsStmts, "case $2: goto $1$2;$n", [prefix, rope(i)])
|
||||
lineF(p, cpsStmts, "}$n", [])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue