From de410e79749c1b4fb4d70f318226b9574d62db1d Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Sun, 21 May 2017 09:41:50 +0200 Subject: Fixed bad boolean comparison in luaV_finisOp --- src/lvm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/lvm.js b/src/lvm.js index 516f995..3d17966 100644 --- a/src/lvm.js +++ b/src/lvm.js @@ -46,7 +46,7 @@ const luaV_finishOp = function(L) { res = res !== 1 ? 1 : 0; /* negate result */ } assert(ci.l_code[ci.l_savedpc].opcode === OCi.OP_JMP); - if (res !== inst.A) /* condition failed? */ + if (res !== (inst.A ? true : false)) /* condition failed? */ ci.l_savedpc++; /* skip jump instruction */ break; } -- cgit v1.2.3-70-g09d2