aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/slice
diff options
context:
space:
mode:
authorGravatar Yash Tibrewal <yashkt@google.com>2017-09-11 15:00:11 -0700
committerGravatar Yash Tibrewal <yashkt@google.com>2017-09-12 14:59:58 -0700
commit52778c4729ae4e59eadae3bb49728967f397eb6f (patch)
treeff7a26e01f62a729f0d97ad6481df3144ad45ae6 /src/core/lib/slice
parenta06e5fdfb791d65946fe5f6123a3d7dc9f264912 (diff)
Adding pointer conversions. Renaming a few variables and type names to avoid C++ compilation issues
Diffstat (limited to 'src/core/lib/slice')
-rw-r--r--src/core/lib/slice/slice.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lib/slice/slice.c b/src/core/lib/slice/slice.c
index 321a21a10b..0764eda052 100644
--- a/src/core/lib/slice/slice.c
+++ b/src/core/lib/slice/slice.c
@@ -174,8 +174,8 @@ static const grpc_slice_refcount_vtable new_with_len_vtable = {
grpc_slice grpc_slice_new_with_len(void *p, size_t len,
void (*destroy)(void *, size_t)) {
grpc_slice slice;
- new_with_len_slice_refcount *rc =
- gpr_malloc(sizeof(new_with_len_slice_refcount));
+ new_with_len_slice_refcount *rc = (new_with_len_slice_refcount *)gpr_malloc(
+ sizeof(new_with_len_slice_refcount));
gpr_ref_init(&rc->refs, 1);
rc->rc.vtable = &new_with_len_vtable;
rc->rc.sub_refcount = &rc->rc;