aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Makarand Dharmapurikar <makarandd@google.com>2016-05-03 21:49:21 -0700
committerGravatar Makarand Dharmapurikar <makarandd@google.com>2016-05-03 21:49:21 -0700
commite5c1a154a4b3b2a3afb4efc0447a74e410cdb074 (patch)
tree7b80376cfafb8491885bf3fe8e2ea37d8ee65bd5
parenta93c4353e79b2913769cc78cecd1da15a6b0e089 (diff)
Fixed a compiler warning that only shows up on linux
-rw-r--r--src/core/ext/transport/cronet/transport/cronet_transport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ext/transport/cronet/transport/cronet_transport.c b/src/core/ext/transport/cronet/transport/cronet_transport.c
index 5da4b873fb..5bb085195c 100644
--- a/src/core/ext/transport/cronet/transport/cronet_transport.c
+++ b/src/core/ext/transport/cronet/transport/cronet_transport.c
@@ -218,7 +218,7 @@ static void on_write_completed(cronet_bidirectional_stream *stream,
static void process_recv_message(stream_obj *s, const uint8_t *recv_data) {
gpr_slice read_data_slice = gpr_slice_malloc((uint32_t)s->total_read_bytes);
uint8_t *dst_p = GPR_SLICE_START_PTR(read_data_slice);
- memcpy(dst_p, recv_data, s->total_read_bytes);
+ memcpy(dst_p, recv_data, (size_t)s->total_read_bytes);
gpr_slice_buffer_add(&s->read_slice_buffer, read_data_slice);
grpc_slice_buffer_stream_init(&s->sbs, &s->read_slice_buffer, 0);
*s->recv_message = (grpc_byte_buffer *)&s->sbs;