aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Yash Tibrewal <yashkt@google.com>2017-10-19 14:31:43 -0700
committerGravatar GitHub <noreply@github.com>2017-10-19 14:31:43 -0700
commitc7ea15e9b708283a1c6848bcb8a81e99aa082a8b (patch)
tree066ffa09cc24f8bde05fe4cdb4312d016f8ff1bd
parentac581ee24b24d9088d8755ce45daa4ec471ab951 (diff)
parentd149af0487468ab874ae5e6c4af3b4f1a9415a66 (diff)
Merge pull request #12653 from vbatts/conversion_fix
core: fix int conversion
-rw-r--r--src/core/ext/transport/cronet/transport/cronet_transport.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ext/transport/cronet/transport/cronet_transport.cc b/src/core/ext/transport/cronet/transport/cronet_transport.cc
index ff1367fb28..97e4f7d72b 100644
--- a/src/core/ext/transport/cronet/transport/cronet_transport.cc
+++ b/src/core/ext/transport/cronet/transport/cronet_transport.cc
@@ -692,7 +692,7 @@ static void create_grpc_frame(grpc_exec_ctx *exec_ctx,
uint8_t *p = (uint8_t *)write_buffer;
/* Append 5 byte header */
/* Compressed flag */
- *p++ = (flags & GRPC_WRITE_INTERNAL_COMPRESS) ? 1 : 0;
+ *p++ = (uint8_t)((flags & GRPC_WRITE_INTERNAL_COMPRESS) ? 1 : 0);
/* Message length */
*p++ = (uint8_t)(length >> 24);
*p++ = (uint8_t)(length >> 16);