Skip to content
Snippets Groups Projects
Commit e58d8178 authored by Craig Tiller's avatar Craig Tiller
Browse files

casting

parent 3c53bb2f
No related branches found
No related tags found
No related merge requests found
...@@ -922,7 +922,8 @@ static batch_control *allocate_batch_control(grpc_call *call) { ...@@ -922,7 +922,8 @@ static batch_control *allocate_batch_control(grpc_call *call) {
size_t i; size_t i;
for (i = 0; i < MAX_CONCURRENT_BATCHES; i++) { for (i = 0; i < MAX_CONCURRENT_BATCHES; i++) {
if ((call->used_batches & (1 << i)) == 0) { if ((call->used_batches & (1 << i)) == 0) {
call->used_batches |= (gpr_uint8)(1 << i); call->used_batches =
(gpr_uint8)(call->used_batches | (gpr_uint8)(1 << i));
return &call->active_batches[i]; return &call->active_batches[i];
} }
} }
......
...@@ -174,7 +174,7 @@ static grpc_chttp2_hptbl_find_result find_simple(grpc_chttp2_hptbl *tbl, ...@@ -174,7 +174,7 @@ static grpc_chttp2_hptbl_find_result find_simple(grpc_chttp2_hptbl *tbl,
static void test_find(void) { static void test_find(void) {
grpc_chttp2_hptbl tbl; grpc_chttp2_hptbl tbl;
int i; gpr_uint32 i;
char buffer[32]; char buffer[32];
grpc_mdctx *mdctx; grpc_mdctx *mdctx;
grpc_chttp2_hptbl_find_result r; grpc_chttp2_hptbl_find_result r;
...@@ -254,7 +254,7 @@ static void test_find(void) { ...@@ -254,7 +254,7 @@ static void test_find(void) {
GPR_ASSERT(r.has_value == 1); GPR_ASSERT(r.has_value == 1);
for (i = 0; i < tbl.num_ents; i++) { for (i = 0; i < tbl.num_ents; i++) {
int expect = 9999 - i; gpr_uint32 expect = 9999 - i;
gpr_ltoa(expect, buffer); gpr_ltoa(expect, buffer);
r = find_simple(&tbl, "test", buffer); r = find_simple(&tbl, "test", buffer);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment