diff options
Diffstat (limited to 'ldblib.c')
-rw-r--r-- | ldblib.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -55,8 +55,7 @@ static int db_getmetatable (lua_State *L) { | |||
55 | 55 | ||
56 | static int db_setmetatable (lua_State *L) { | 56 | static int db_setmetatable (lua_State *L) { |
57 | int t = lua_type(L, 2); | 57 | int t = lua_type(L, 2); |
58 | luaL_argcheck(L, t == LUA_TNIL || t == LUA_TTABLE, 2, | 58 | luaL_argexpected(L, t == LUA_TNIL || t == LUA_TTABLE, 2, "nil or table"); |
59 | "nil or table expected"); | ||
60 | lua_settop(L, 2); | 59 | lua_settop(L, 2); |
61 | lua_setmetatable(L, 1); | 60 | lua_setmetatable(L, 1); |
62 | return 1; /* return 1st argument */ | 61 | return 1; /* return 1st argument */ |