From d3530bdc202419c85ec79fdb01197112cab8a788 Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Thu, 23 Mar 2017 15:46:09 +0100 Subject: strings.lua --- src/lmathlib.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lmathlib.js') 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; -- cgit v1.2.3-54-g00ecf