diff options
author | Benoit Giannangeli <benoit.giannangeli@boursorama.fr> | 2017-02-24 09:17:59 +0100 |
---|---|---|
committer | Benoit Giannangeli <benoit.giannangeli@boursorama.fr> | 2017-02-24 10:20:05 +0100 |
commit | 4cbbb77b73f6c1776498bdc70f3ca9d7406d40bf (patch) | |
tree | 6e872cf184e06820a96597d5fd35ee1ef534afd9 /src/lvm.js | |
parent | ae4e53e2e7234a167058199085921a9182e8522a (diff) | |
download | fengari-4cbbb77b73f6c1776498bdc70f3ca9d7406d40bf.tar.gz fengari-4cbbb77b73f6c1776498bdc70f3ca9d7406d40bf.tar.bz2 fengari-4cbbb77b73f6c1776498bdc70f3ca9d7406d40bf.zip |
Travis
Diffstat (limited to 'src/lvm.js')
-rw-r--r-- | src/lvm.js | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -521,7 +521,6 @@ const luaV_execute = function(L) { for (let aux = 0; nfuncOff + aux < lim; aux++) L.stack[ofuncOff + aux] = L.stack[nfuncOff + aux]; oci.func = nci.func; - oci.funcOff = nci.funcOff; oci.u.l.base = ofuncOff + (nci.u.l.base - nfuncOff); L.top = ofuncOff + (L.top - nfuncOff); oci.top = L.top; @@ -920,7 +919,7 @@ const luaV_objlen = function(L, ra, rb) { } case CT.LUA_TSHRSTR: case CT.LUA_TLNGSTR: - L.stack[ra] = rb.value.length; // TODO: 8-byte clean string + L.stack[ra] = new TValue(CT.LUA_TNUMINT, rb.value.length); // TODO: 8-byte clean string return; default: { tm = ltm.luaT_gettmbyobj(L, rb, ltm.TMS.TM_LEN); |