diff options
Diffstat (limited to 'libstdc++-v3/testsuite/ext/pool_allocator/allocate_chunk.cc')
-rw-r--r-- | libstdc++-v3/testsuite/ext/pool_allocator/allocate_chunk.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/testsuite/ext/pool_allocator/allocate_chunk.cc b/libstdc++-v3/testsuite/ext/pool_allocator/allocate_chunk.cc index 64afd99a3c1..1d72d5d604d 100644 --- a/libstdc++-v3/testsuite/ext/pool_allocator/allocate_chunk.cc +++ b/libstdc++-v3/testsuite/ext/pool_allocator/allocate_chunk.cc @@ -53,7 +53,7 @@ void test01() // The constant 20 comes from __pool_alloc_base::_M_refill. See // also __pool_alloc_base::_M_allocate_chunk. __pool_alloc<small> alloc_small; - for (int i = 0; i < 20 * sizeof(big) / sizeof(small) + 1; ++i) + for (unsigned int i = 0; i < 20 * sizeof(big) / sizeof(small) + 1; ++i) alloc_small.allocate(1); } |