Skip to content

Commit

Permalink
[lua] use luaL_checkinteger instead of luaL_checkint (deprecated in l…
Browse files Browse the repository at this point in the history
…ua5.3)

Change-Id: I17603746e49f0497e685d6413e1f65c6e78036ce
  • Loading branch information
stbuehler committed Dec 27, 2024
1 parent 35ad3e0 commit 60e2ada
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/response_lua.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ static int lua_response_attr_read_status(liResponse *resp, lua_State *L) {
}

static int lua_response_attr_write_status(liResponse *resp, lua_State *L) {
int status = luaL_checkint(L, 3);
int status = (int) luaL_checkinteger(L, 3);
if (status < 200 || status > 999) {
lua_pushliteral(L, "Invalid http response status: ");
lua_pushinteger(L, status);
Expand Down

0 comments on commit 60e2ada

Please sign in to comment.