summaryrefslogtreecommitdiffstats
path: root/libcxx/test/support/test_allocator.h
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-11-23 09:16:12 +0000
committerEric Fiselier <eric@efcs.ca>2016-11-23 09:16:12 +0000
commit341c9dd9c40dfc34569b615c52162aeeec5f2a68 (patch)
treeea182194996e17393e14c624f06d09420c284d31 /libcxx/test/support/test_allocator.h
parent5bdf70f41093afe86c3d413dcd6c7cd5e734f937 (diff)
downloadbcm5719-llvm-341c9dd9c40dfc34569b615c52162aeeec5f2a68.tar.gz
bcm5719-llvm-341c9dd9c40dfc34569b615c52162aeeec5f2a68.zip
Fix __hash_table::max_size() on 32 bit systems
llvm-svn: 287749
Diffstat (limited to 'libcxx/test/support/test_allocator.h')
-rw-r--r--libcxx/test/support/test_allocator.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libcxx/test/support/test_allocator.h b/libcxx/test/support/test_allocator.h
index 7ce60025f68..578b69ddc0b 100644
--- a/libcxx/test/support/test_allocator.h
+++ b/libcxx/test/support/test_allocator.h
@@ -21,7 +21,8 @@
#include "test_macros.h"
template <class Alloc>
-inline size_t alloc_max_size(Alloc const &a) {
+inline typename std::allocator_traits<Alloc>::size_type
+alloc_max_size(Alloc const &a) {
typedef std::allocator_traits<Alloc> AT;
return AT::max_size(a);
}
OpenPOWER on IntegriCloud