diff --git a/src/objective-c/GRPCClient/private/NSData+GRPC.m b/src/objective-c/GRPCClient/private/NSData+GRPC.m index 741b70b575056436ae9d1337ee1906e4964c70e3..6487bcb5895a14de2a51de5edfff3e9213c15598 100644 --- a/src/objective-c/GRPCClient/private/NSData+GRPC.m +++ b/src/objective-c/GRPCClient/private/NSData+GRPC.m @@ -71,7 +71,7 @@ static grpc_byte_buffer *CopyCharArrayToNewByteBuffer(const char *array, } char *array; NSUInteger length; - MallocAndCopyByteBufferToCharArray(buffer, &length, &array); + MallocAndCopyByteBufferToCharArray(buffer, (size_t *)&length, &array); if (!array) { // TODO(jcanizales): grpc_byte_buffer is reference-counted, so we can // prevent this memory problem by implementing a subclass of NSData