summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2018-02-04 15:49:46 -0800
committerdaurnimator <quae@daurnimator.com>2018-02-04 15:49:46 -0800
commit1f486bd421bba7f93e6119ed9fde711c2799f96d (patch)
treee15a789453d6f68c9b4beed743f6b74596eebd79
parent33814ee61baed1b749ba2bdf4a359f092d21c1d1 (diff)
downloadfengari-1f486bd421bba7f93e6119ed9fde711c2799f96d.tar.gz
fengari-1f486bd421bba7f93e6119ed9fde711c2799f96d.tar.bz2
fengari-1f486bd421bba7f93e6119ed9fde711c2799f96d.zip
src/lapi.js: Explicit check against LUA_MULTRET
-rw-r--r--src/lapi.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lapi.js b/src/lapi.js
index f7347d1..369a64b 100644
--- a/src/lapi.js
+++ b/src/lapi.js
@@ -962,7 +962,7 @@ const lua_setuservalue = function(L, idx) {
};
const checkresults = function(L,na,nr) {
- api_check(L, (nr) == LUA_MULTRET || (L.ci.top - L.top >= (nr) - (na)),
+ api_check(L, nr === LUA_MULTRET || (L.ci.top - L.top >= (nr) - (na)),
"results from function overflow current stack size");
};