diff options
author | Benoit Giannangeli <giann008@gmail.com> | 2017-05-21 09:41:50 +0200 |
---|---|---|
committer | Benoit Giannangeli <giann008@gmail.com> | 2017-05-21 09:41:50 +0200 |
commit | de410e79749c1b4fb4d70f318226b9574d62db1d (patch) | |
tree | 6e7ce5e9af7edc2b8423686112a5c8346964ba2f /src | |
parent | 42fbc509d98d330686a8c890933b21e3847adb91 (diff) | |
download | fengari-de410e79749c1b4fb4d70f318226b9574d62db1d.tar.gz fengari-de410e79749c1b4fb4d70f318226b9574d62db1d.tar.bz2 fengari-de410e79749c1b4fb4d70f318226b9574d62db1d.zip |
Fixed bad boolean comparison in luaV_finisOp
Diffstat (limited to 'src')
-rw-r--r-- | src/lvm.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |