From 25c5f2d0f633e3382d649430940ef33adc4abcda Mon Sep 17 00:00:00 2001 From: murgatroid99 Date: Mon, 22 Jun 2015 09:18:42 -0700 Subject: Changed input_buffer_count to a size_t --- src/core/security/secure_endpoint.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/core') diff --git a/src/core/security/secure_endpoint.c b/src/core/security/secure_endpoint.c index 0489764b4d..73496d1153 100644 --- a/src/core/security/secure_endpoint.c +++ b/src/core/security/secure_endpoint.c @@ -116,7 +116,7 @@ static void on_read(void *user_data, gpr_slice *slices, size_t nslices, grpc_endpoint_cb_status error) { unsigned i; gpr_uint8 keep_looping = 0; - int input_buffer_count = 0; + size_t input_buffer_count = 0; tsi_result result = TSI_OK; secure_endpoint *ep = (secure_endpoint *)user_data; gpr_uint8 *cur = GPR_SLICE_START_PTR(ep->read_staging_buffer); @@ -181,9 +181,9 @@ static void on_read(void *user_data, gpr_slice *slices, size_t nslices, return; } /* The upper level will unref the slices. */ - input_buffer_count = (int)ep->input_buffer.count; + input_buffer_count = ep->input_buffer.count; ep->input_buffer.count = 0; - call_read_cb(ep, ep->input_buffer.slices, (size_t)input_buffer_count, error); + call_read_cb(ep, ep->input_buffer.slices, input_buffer_count, error); } static void endpoint_notify_on_read(grpc_endpoint *secure_ep, -- cgit v1.2.3