diff options
author | Benoit Giannangeli <giann008@gmail.com> | 2017-03-23 15:46:09 +0100 |
---|---|---|
committer | Benoit Giannangeli <giann008@gmail.com> | 2017-03-24 07:05:47 +0100 |
commit | d3530bdc202419c85ec79fdb01197112cab8a788 (patch) | |
tree | f83dd6abe1a539a5085320d071ee4934950fb87b /src/lapi.js | |
parent | 4dc92d3e554278192c2979dd3d81942ca24f15b6 (diff) | |
download | fengari-d3530bdc202419c85ec79fdb01197112cab8a788.tar.gz fengari-d3530bdc202419c85ec79fdb01197112cab8a788.tar.bz2 fengari-d3530bdc202419c85ec79fdb01197112cab8a788.zip |
strings.lua
Diffstat (limited to 'src/lapi.js')
-rw-r--r-- | src/lapi.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lapi.js b/src/lapi.js index 991e982..5064c30 100644 --- a/src/lapi.js +++ b/src/lapi.js @@ -209,7 +209,7 @@ const lua_pushnumber = function(L, n) { const lua_pushinteger = function(L, n) { assert(typeof n === "number"); - L.stack[L.top++] = new TValue(CT.LUA_TNUMINT, n|0); + L.stack[L.top++] = new TValue(CT.LUA_TNUMINT, n); assert(L.top <= L.ci.top, "stack overflow"); }; @@ -959,4 +959,4 @@ module.exports.lua_touserdata = lua_touserdata; module.exports.lua_type = lua_type; module.exports.lua_typename = lua_typename; module.exports.lua_version = lua_version; -module.exports.lua_xmove = lua_xmove;
\ No newline at end of file +module.exports.lua_xmove = lua_xmove; |