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);