diff options
author | daurnimator <quae@daurnimator.com> | 2017-04-26 17:15:37 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-04-26 17:21:52 +1000 |
commit | 46049c9df73a446192957af1f50df19167c79f07 (patch) | |
tree | e055ff69c29a6faf8aec40cd2dc47bb5e245ce05 /src/lmathlib.js | |
parent | ef7bc7c1f8684af04da5d9e91fecf6ce82ecf397 (diff) | |
download | fengari-46049c9df73a446192957af1f50df19167c79f07.tar.gz fengari-46049c9df73a446192957af1f50df19167c79f07.tar.bz2 fengari-46049c9df73a446192957af1f50df19167c79f07.zip |
Remove lua.CT and lua.constant_types (still available from defs)
Diffstat (limited to 'src/lmathlib.js')
-rw-r--r-- | src/lmathlib.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lmathlib.js b/src/lmathlib.js index fd18711..149bebd 100644 --- a/src/lmathlib.js +++ b/src/lmathlib.js @@ -11,7 +11,6 @@ const ldo = require('./ldo.js'); const ldebug = require('./ldebug.js'); const llimit = require('./llimit.js'); const luaconf = require('./luaconf.js'); -const CT = lua.constant_types; const TS = lua.thread_status; var RNG = seedrandom(); @@ -195,7 +194,7 @@ const math_max = function(L) { }; const math_type = function(L) { - if (lapi.lua_type(L, 1) === CT.LUA_TNUMBER) { + if (lapi.lua_type(L, 1) === lua.LUA_TNUMBER) { if (lapi.lua_isinteger(L, 1)) lapi.lua_pushliteral(L, "integer"); else |