From 60e2ada142ff35e2524119b1e4e253a6fd6d8402 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BChler?= Date: Fri, 27 Dec 2024 21:01:27 +0100 Subject: [PATCH] [lua] use luaL_checkinteger instead of luaL_checkint (deprecated in lua5.3) Change-Id: I17603746e49f0497e685d6413e1f65c6e78036ce --- src/main/response_lua.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/response_lua.c b/src/main/response_lua.c index 0b5c15ac..5d3ab24c 100644 --- a/src/main/response_lua.c +++ b/src/main/response_lua.c @@ -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);