use std::size_t consistently and avoid possible loss of data
This commit is contained in:
parent
e204b257ad
commit
2fae253c62
@ -338,7 +338,7 @@ class DeallocatingVector
|
|||||||
{
|
{
|
||||||
const std::size_t number_of_necessary_buckets = 1 + (new_size / bucketSizeC);
|
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];
|
delete[] bucket_list[i];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user