diff options
-rw-r--r-- | include/grpc/slice.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/grpc/slice.h b/include/grpc/slice.h index 9d2a9fbc81..3080d63e2b 100644 --- a/include/grpc/slice.h +++ b/include/grpc/slice.h @@ -65,11 +65,11 @@ GPRAPI grpc_slice grpc_slice_new_with_len(void *p, size_t len, GPRAPI grpc_slice grpc_slice_malloc(size_t length); GPRAPI grpc_slice grpc_slice_malloc_large(size_t length); -#define GRPC_SLICE_MALLOC(len) \ - ((len) <= GRPC_SLICE_INLINED_SIZE \ +#define GRPC_SLICE_MALLOC(len) grpc_slice_malloc(len) +/* ((len) <= GRPC_SLICE_INLINED_SIZE \ ? (grpc_slice){.refcount = NULL, \ .data.inlined = {.length = (uint8_t)(len)}} \ - : grpc_slice_malloc_large((len))) + : grpc_slice_malloc_large((len)))*/ /** Intern a slice: |