From 1f486bd421bba7f93e6119ed9fde711c2799f96d Mon Sep 17 00:00:00 2001 From: daurnimator Date: Sun, 4 Feb 2018 15:49:46 -0800 Subject: src/lapi.js: Explicit check against LUA_MULTRET --- src/lapi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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"); }; -- cgit v1.2.3-70-g09d2