diff options
Diffstat (limited to 'compiler/cgen.nim')
-rw-r--r-- | compiler/cgen.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/cgen.nim b/compiler/cgen.nim index decbe55c3..c829a463e 100644 --- a/compiler/cgen.nim +++ b/compiler/cgen.nim @@ -628,7 +628,7 @@ proc closureSetup(p: BProc, prc: PSym) = #echo "created environment: ", env.id, " for ", prc.name.s assignLocalVar(p, env) # generate cast assignment: - linefmt(p, cpsStmts, "$1 = ($2) ClEnv;$n", + linefmt(p, cpsStmts, "$1 = ($2) ClE_0;$n", rdLoc(env.loc), getTypeDesc(p.module, env.typ)) proc easyResultAsgn(n: PNode): PNode = |