diff options
Diffstat (limited to 'src/lmathlib.js')
-rw-r--r-- | src/lmathlib.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lmathlib.js b/src/lmathlib.js index 55f8416..724ad75 100644 --- a/src/lmathlib.js +++ b/src/lmathlib.js @@ -268,11 +268,11 @@ const luaopen_math = function(L) { lapi.lua_setfield(L, -2, "pi"); lapi.lua_pushnumber(L, Number.MAX_VALUE); lapi.lua_setfield(L, -2, "huge"); - lapi.lua_pushnumber(L, Number.MAX_SAFE_INTEGER); + lapi.lua_pushinteger(L, Number.MAX_SAFE_INTEGER); lapi.lua_setfield(L, -2, "maxinteger"); - lapi.lua_pushnumber(L, Number.MIN_SAFE_INTEGER); + lapi.lua_pushinteger(L, Number.MIN_SAFE_INTEGER); lapi.lua_setfield(L, -2, "mininteger"); return 1; }; -module.exports.luaopen_math = luaopen_math;
\ No newline at end of file +module.exports.luaopen_math = luaopen_math; |