diff --git a/plugins/lua/ts_lua_common.h b/plugins/lua/ts_lua_common.h index dba8b7d77e0..628eb09dd68 100644 --- a/plugins/lua/ts_lua_common.h +++ b/plugins/lua/ts_lua_common.h @@ -91,8 +91,8 @@ typedef struct { char script[TS_LUA_MAX_SCRIPT_FNAME_LENGTH]; void *conf_vars[TS_LUA_MAX_CONFIG_VARS_COUNT]; - int _first : 1; // create current instance for 1st ts_lua_main_ctx - int _last : 1; // create current instance for the last ts_lua_main_ctx + unsigned int _first : 1; // create current instance for 1st ts_lua_main_ctx + unsigned int _last : 1; // create current instance for the last ts_lua_main_ctx int remap; int states; @@ -160,10 +160,10 @@ typedef struct { ts_lua_http_ctx *hctx; int64_t to_flush; - int reuse : 1; - int recv_complete : 1; - int send_complete : 1; - int all_ready : 1; + unsigned int reuse : 1; + unsigned int recv_complete : 1; + unsigned int send_complete : 1; + unsigned int all_ready : 1; } ts_lua_http_intercept_ctx; #define TS_LUA_RELEASE_IO_HANDLE(ih) \ diff --git a/plugins/lua/ts_lua_coroutine.h b/plugins/lua/ts_lua_coroutine.h index 831066dc24b..b2fb722fb51 100644 --- a/plugins/lua/ts_lua_coroutine.h +++ b/plugins/lua/ts_lua_coroutine.h @@ -59,7 +59,7 @@ typedef struct async_item { void *data; // private data async_clean cleanup; // cleanup function - int deleted : 1; + unsigned int deleted : 1; } ts_lua_async_item; ts_lua_async_item *ts_lua_async_create_item(TSCont cont, async_clean func, void *d, ts_lua_cont_info *ci); diff --git a/plugins/lua/ts_lua_fetch.h b/plugins/lua/ts_lua_fetch.h index 04c0d47a56c..c4b600cc4d8 100644 --- a/plugins/lua/ts_lua_fetch.h +++ b/plugins/lua/ts_lua_fetch.h @@ -30,8 +30,8 @@ typedef struct { TSIOBufferReader reader; TSFetchSM fch; - int over : 1; - int failed : 1; + unsigned int over : 1; + unsigned int failed : 1; } ts_lua_fetch_info; typedef struct fetch_multi_info {