Fix for passing arguments to the entry call frame

Fri, 19 Nov 2010 19:22:20 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Fri, 19 Nov 2010 19:22:20 +0000
changeset 82
72fe2316bd67
parent 81
1deed5894ff6
child 83
0e6b19731508

Fix for passing arguments to the entry call frame

lvm.js file | annotate | diff | comparison | revisions
--- a/lvm.js	Fri Nov 19 19:21:48 2010 +0000
+++ b/lvm.js	Fri Nov 19 19:22:20 2010 +0000
@@ -378,7 +378,7 @@
 			else
 				frame.reg = [];
 			this.callstack.push(frame);
-			for(var i=0;i<lfFunction.maxStackSize;i++)
+			for(var i=frame.reg.length;i<lfFunction.maxStackSize;i++)
 				frame.reg[i] = this.LValue(null);
 			return this.run(frame);
 		}

mercurial