aboutsummaryrefslogtreecommitdiff
path: root/src/linda.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/linda.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/linda.cpp b/src/linda.cpp
index 8005211..7b3973d 100644
--- a/src/linda.cpp
+++ b/src/linda.cpp
@@ -1020,8 +1020,8 @@ LUAG_FUNC(linda)
1020 luaL_argcheck(L, top <= 2, top, "too many arguments"); 1020 luaL_argcheck(L, top <= 2, top, "too many arguments");
1021 if (top == 1) 1021 if (top == 1)
1022 { 1022 {
1023 int const t{ lua_type(L, 1) }; 1023 LuaType const t{ lua_type_as_enum(L, 1) };
1024 luaL_argcheck(L, t == LUA_TSTRING || t == LUA_TNUMBER, 1, "wrong parameter (should be a string or a number)"); 1024 luaL_argcheck(L, t == LuaType::STRING || t == LuaType::NUMBER, 1, "wrong parameter (should be a string or a number)");
1025 } 1025 }
1026 else if (top == 2) 1026 else if (top == 2)
1027 { 1027 {