Skip to content

Commit 60e2ada

Browse files
committed
[lua] use luaL_checkinteger instead of luaL_checkint (deprecated in lua5.3)
Change-Id: I17603746e49f0497e685d6413e1f65c6e78036ce
1 parent 35ad3e0 commit 60e2ada

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/response_lua.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ static int lua_response_attr_read_status(liResponse *resp, lua_State *L) {
1616
}
1717

1818
static int lua_response_attr_write_status(liResponse *resp, lua_State *L) {
19-
int status = luaL_checkint(L, 3);
19+
int status = (int) luaL_checkinteger(L, 3);
2020
if (status < 200 || status > 999) {
2121
lua_pushliteral(L, "Invalid http response status: ");
2222
lua_pushinteger(L, status);

0 commit comments

Comments
 (0)