summaryrefslogtreecommitdiffstats
path: root/libcxx/test/support
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/support')
-rw-r--r--libcxx/test/support/allocators.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/test/support/allocators.h b/libcxx/test/support/allocators.h
index b1eea8d0b68..00e9a0c13ce 100644
--- a/libcxx/test/support/allocators.h
+++ b/libcxx/test/support/allocators.h
@@ -104,7 +104,7 @@ public:
T* allocate(std::size_t, const void* hint)
{
allocate_called = true;
- return (T*)hint;
+ return (T*) const_cast<void *>(hint);
}
};
OpenPOWER on IntegriCloud