Skip to content
Snippets Groups Projects
Commit 7b07d9ee authored by Tom Fischer's avatar Tom Fischer
Browse files

Fixed Windows warning signed/unsigned comparison.

Fixed Windows warning signed/unsigned comparison for OpenMP loop type.
parent 8a67b4e2
No related branches found
No related tags found
No related merge requests found
......@@ -67,9 +67,16 @@ T scpr(T const * const v0, T const * const v1, unsigned n)
OPENMP_LOOP_TYPE k;
#pragma omp parallel for reduction (+:res)
#ifdef WIN32
#pragma warning ( push )
#pragma warning ( disable: 4018 )
#endif
for (k = 1; k<n; k++) {
res += v0[k] * v1[k];
}
#ifdef WIN32
#pragma warning ( pop )
#endif
#else
for (std::size_t k(1); k < n; k++)
res += v0[k] * v1[k];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment