fixed some double-promotion and sign-compare warnings

This commit is contained in:
Christoph Hertzberg
2016-05-11 23:02:26 +02:00
parent 7268b10203
commit 2150f13d65
4 changed files with 5 additions and 5 deletions

View File

@@ -36,7 +36,7 @@ class NonBlockingThreadPoolTempl : public Eigen::ThreadPoolInterface {
// indices as (t + coprime) % num_threads, we will cover all threads without
// repetitions (effectively getting a presudo-random permutation of thread
// indices).
for (unsigned i = 1; i <= num_threads; i++) {
for (int i = 1; i <= num_threads; i++) {
unsigned a = i;
unsigned b = num_threads;
// If GCD(a, b) == 1, then a and b are coprimes.