From 6fba251a389453b18a100fc786feb0037e6286a9 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Mon, 15 Apr 2019 10:36:53 +1000 Subject: [PATCH] pool: avoid unsigned/signed type conversion warnings --- test/pool.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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);