aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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");
};