diff --git a/test/pool.cpp b/test/pool.cpp index 56b14cef..b972edf3 100644 --- a/test/pool.cpp +++ b/test/pool.cpp @@ -51,13 +51,13 @@ void check_keep_value (cruft::TAP::logger &tap) { // Ensure that items keep their values. - cruft::pool uintpool(256); - std::vector uintvector; + cruft::pool uintpool(256); + std::vector uintvector; uintvector.reserve(uintpool.capacity ()); // Give every item a unique value - for (unsigned int i = 0; i < uintpool.capacity (); ++i) { - uint64_t *item = uintpool.allocate (); + for (std::size_t i = 0; i < uintpool.capacity (); ++i) { + std::size_t *item = uintpool.allocate (); *item = i; uintvector.push_back(item);