Use properly-sized loop variables or convert to ranged-for (bugprone-too-small-loop-variable)

This commit is contained in:
Tim Wojtulewicz 2020-02-12 14:56:56 -08:00
parent 94c4c85e82
commit 1248411a2f
22 changed files with 89 additions and 95 deletions

View file

@ -177,7 +177,7 @@ bool CardinalityCounter::Merge(CardinalityCounter* c)
V = 0;
for ( unsigned int i = 0; i < m; i++ )
for ( size_t i = 0; i < m; i++ )
{
if ( temp[i] > buckets[i] )
buckets[i] = temp[i];