Skip to content

Commit 869c662

Browse files
committed
Replace checkint with checkinteger
one is an alias of the other, but one was removed in 5.3+, so it's better to use the common function across all versions.
1 parent 42f7a28 commit 869c662

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua_cmsgpack.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,7 @@ static int mp_unpack_one(lua_State *L) {
843843
}
844844

845845
static int mp_unpack_limit(lua_State *L) {
846-
int limit = luaL_checkint(L, 2);
846+
int limit = luaL_checkinteger(L, 2);
847847
int offset = luaL_optint(L, 3, 0);
848848
/* Variable pop because offset may not exist */
849849
lua_pop(L, lua_gettop(L)-1);

0 commit comments

Comments
 (0)