aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/support/memory.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/lib/support/memory.h')
-rw-r--r--src/core/lib/support/memory.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lib/support/memory.h b/src/core/lib/support/memory.h
index 6b336681db..695418e3e1 100644
--- a/src/core/lib/support/memory.h
+++ b/src/core/lib/support/memory.h
@@ -76,7 +76,7 @@ class Allocator {
pointer address(reference x) const { return &x; }
const_pointer address(const_reference x) const { return &x; }
pointer allocate(std::size_t n,
- std::allocator<void>::const_pointer hint = 0) {
+ std::allocator<void>::const_pointer hint = nullptr) {
return static_cast<pointer>(gpr_malloc(n * sizeof(T)));
}
void deallocate(T* p, std::size_t n) { gpr_free(p); }