diff options
Diffstat (limited to 'src/lcode.js')
-rw-r--r-- | src/lcode.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lcode.js b/src/lcode.js index 8f964d7..6515d93 100644 --- a/src/lcode.js +++ b/src/lcode.js @@ -439,7 +439,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, key); /* index scanner table */ + let idx = ltable.luaH_set(fs.L, fs.ls.h, key); /* index scanner table */ if (idx.ttisinteger()) { /* is there an index there? */ let k = idx.value; /* correct value? (warning: must distinguish floats from integers!) */ |