use std::size_t consistently and avoid possible loss of data

This commit is contained in:
Dennis Luxen 2014-06-19 11:14:28 +02:00
parent e204b257ad
commit 2fae253c62

View File

@ -338,7 +338,7 @@ class DeallocatingVector
{
const std::size_t number_of_necessary_buckets = 1 + (new_size / bucketSizeC);
for (unsigned i = number_of_necessary_buckets; i < bucket_list.size(); ++i)
for (std::size_t i = number_of_necessary_buckets; i < bucket_list.size(); ++i)
{
delete[] bucket_list[i];
}