summaryrefslogtreecommitdiff
path: root/src/lcode.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-08 14:27:25 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-08 15:31:45 +1000
commit97bb7386d33d21b784e21fd4067e77c6c3084d71 (patch)
treeb3737657e3d027577f4294169fa97933d0cf955c /src/lcode.js
parent003c72abdc3c398e94dc66f7eb997be654f59463 (diff)
downloadfengari-97bb7386d33d21b784e21fd4067e77c6c3084d71.tar.gz
fengari-97bb7386d33d21b784e21fd4067e77c6c3084d71.tar.bz2
fengari-97bb7386d33d21b784e21fd4067e77c6c3084d71.zip
LexState.h is a Table not a TValue
Diffstat (limited to 'src/lcode.js')
-rw-r--r--src/lcode.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lcode.js b/src/lcode.js
index 4d3c547..b697b16 100644
--- a/src/lcode.js
+++ b/src/lcode.js
@@ -484,7 +484,7 @@ const freeexps = function(fs, e1, e2) {
*/
const addk = function(fs, key, v) {
let f = fs.f;
- let idx = ltable.luaH_set(fs.ls.h.value, key); /* index scanner table */
+ let idx = ltable.luaH_set(fs.ls.h, key); /* index scanner table */
if (idx && !idx.ttisnil()) { /* is there an index there? */
/* correct value? (warning: must distinguish floats from integers!) */
if (idx.value < fs.nk && f.k[idx.value].ttype() === v.ttype() && f.k[idx.value].value === v.value)