lvm.js

changeset 76
d7d7a6bb90cd
parent 75
aaecd573ee30
child 77
ab8ff064d808
--- a/lvm.js	Fri Nov 19 16:04:51 2010 +0000
+++ b/lvm.js	Fri Nov 19 16:05:36 2010 +0000
@@ -114,7 +114,7 @@
 			&& (op2.type == "number" || op2.type == "string"))
 		{
 			// Plain addition
-			return new LValue("number", parseFloat(this.value, 10) + parseFloat(op2.value));
+			return this.vm.LValue(parseFloat(this.value, 10) + parseFloat(op2.value, 10));
 		}
 		else
 			throw "Attempt to perform arithmetic on a "+this.type+" and "+op2.type;

mercurial