diff options
author | daurnimator <quae@daurnimator.com> | 2017-05-03 19:16:16 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-05-03 19:16:16 +1000 |
commit | 735bc392056f7c55c981b68feb941bf1cc5a8ff3 (patch) | |
tree | e46733b35371b4be5fb30bb4400bb6443d09c1b3 /src/ltable.js | |
parent | 4cf090d7ede6aa3153ad912c580cfb07b1e60a9d (diff) | |
download | fengari-735bc392056f7c55c981b68feb941bf1cc5a8ff3.tar.gz fengari-735bc392056f7c55c981b68feb941bf1cc5a8ff3.tar.bz2 fengari-735bc392056f7c55c981b68feb941bf1cc5a8ff3.zip |
Pipe | has higher precedence than equals
Diffstat (limited to 'src/ltable.js')
-rw-r--r-- | src/ltable.js | 2 |
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) { |