Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Rw bindings to lists were being mishandled, pmichaud++
  • Loading branch information
sorear committed Aug 18, 2012
1 parent c248dcf commit 025a6e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/CodeGen.cs
Expand Up @@ -2699,9 +2699,9 @@ class NamProcessor {
CpsOp typ = th.Scan(zyg[3]);
CpsOp rhs = th.Scan(zyg[4]);
int ro = JScalar.B(zyg[1]) ? 0 : Kernel.NBV_RW;
int list = JScalar.B(zyg[2]) ? Kernel.NBV_LIST : 0;
int mode = JScalar.B(zyg[2]) ? Kernel.NBV_LIST : ro; // ignore RW if LIST
return CpsOp.MethodCall(Tokens.Kernel_NewBoundVar,
CpsOp.IntLiteral(ro+list), typ, rhs);
CpsOp.IntLiteral(mode), typ, rhs);
};
handlers["whileloop"] = delegate(NamProcessor th, object[] z) {
return CpsOp.While(FixBool(z[1]), FixBool(z[2]),
Expand Down

0 comments on commit 025a6e6

Please sign in to comment.