Fixed warings generated using -Weverything

This commit is contained in:
Christophe Riccio
2017-08-07 01:00:36 +02:00
parent d63aa4ea85
commit 49435a09da
5 changed files with 24 additions and 22 deletions

View File

@@ -861,7 +861,7 @@ static int test_openmp()
}
#pragma omp parallel for default(none) shared(VectorA, VectorB, VectorC)
for (int i = 0; i < VectorC.size(); ++i)
for (int i = 0; i < static_cast<int>(VectorC.size()); ++i)
{
VectorC[i] = VectorA[i] + VectorB[i];
}