# HG changeset patch # User Matthew Wild # Date 1290182736 0 # Node ID d7d7a6bb90cd1ad90fcf9bc248acfcee77cde121 # Parent aaecd573ee300513d15ded31971e4786c36e263b Fix OP_ADD code to use new LValue format diff -r aaecd573ee30 -r d7d7a6bb90cd lvm.js --- 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;