aboutsummaryrefslogtreecommitdiff
path: root/src/lmathlib.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/lmathlib.js')
-rw-r--r--src/lmathlib.js3
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