aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/ext/new_allocator.h
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++-v3/include/ext/new_allocator.h')
-rw-r--r--libstdc++-v3/include/ext/new_allocator.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/include/ext/new_allocator.h b/libstdc++-v3/include/ext/new_allocator.h
index dd00b7384aa..2278e123fc5 100644
--- a/libstdc++-v3/include/ext/new_allocator.h
+++ b/libstdc++-v3/include/ext/new_allocator.h
@@ -96,8 +96,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// NB: __n is permitted to be 0. The C++ standard says nothing
// about what the return value is when __n == 0.
pointer
- allocate(size_type __n, const void* = 0)
- {
+ allocate(size_type __n, const void* = static_cast<const void*>(0))
+ {
if (__n > this->max_size())
std::__throw_bad_alloc();