Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix compilation of state-names
  • Loading branch information
sorear committed Oct 20, 2011
1 parent 2e191e7 commit c7a98e8
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions lib/CodeGen.cs
Expand Up @@ -4073,12 +4073,16 @@ public class DowncallReceiver : CallReceiver {
string back = (string)args[8];
string name = (string)args[2];

args[1] = outer;
args[1] = Handle.Wrap(outer);
args[2] = back;
AddLexical(args, new LISimple(flags, type));
args[1] = sub;
args[2] = name;
return AddLexical(args, new LIAlias(back));
if (name != null) {
args[1] = Handle.Wrap(sub);
args[2] = name;
return AddLexical(args, new LIAlias(back));
} else {
return null;
}
} else if (cmd == "add_my_stash") {
STable type = (STable)Handle.Unbox(args[6]);

Expand Down

0 comments on commit c7a98e8

Please sign in to comment.