You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2020/02/21 17:57:40 UTC
[trafficserver] branch 9.0.x updated: Change bitfields to be
unsigned explicitly (#6373)
This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 37aa318 Change bitfields to be unsigned explicitly (#6373)
37aa318 is described below
commit 37aa3181b81220809983795b5c16461f2c24b3c8
Author: Evan Zelkowitz <ez...@apache.org>
AuthorDate: Thu Jan 30 11:32:48 2020 -0700
Change bitfields to be unsigned explicitly (#6373)
Addresses issue #6350
(cherry picked from commit bea9d089c9086859d7bbe9a983b625dfe1b1a388)
---
plugins/lua/ts_lua_common.h | 12 ++++++------
plugins/lua/ts_lua_coroutine.h | 2 +-
plugins/lua/ts_lua_fetch.h | 4 ++--
3 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/plugins/lua/ts_lua_common.h b/plugins/lua/ts_lua_common.h
index dba8b7d..628eb09 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 831066d..b2fb722 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 04c0d47..c4b600c 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 {