summaryrefslogtreecommitdiff
path: root/src/ltable.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/ltable.js')
-rw-r--r--src/ltable.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ltable.js b/src/ltable.js
index 874a9f0..d6fffe9 100644
--- a/src/ltable.js
+++ b/src/ltable.js
@@ -79,7 +79,7 @@ const setgeneric = function(t, hash, key) {
};
const luaH_setint = function(t, key, value) {
- assert(typeof key == "number" && value instanceof lobject.TValue && key|0 === key);
+ assert(typeof key == "number" && value instanceof lobject.TValue && (key|0) === key);
let hash = key; /* table_hash known result */
let v = t.strong.get(hash);
if (v) {