From 04f954956d407fbf6cf7c2be3a993460aa608177 Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Tue, 19 Apr 2016 15:27:09 -0700 Subject: Fixed a few typos --- unsupported/test/cxx11_eventcount.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'unsupported/test/cxx11_eventcount.cpp') diff --git a/unsupported/test/cxx11_eventcount.cpp b/unsupported/test/cxx11_eventcount.cpp index 898c4c278..2f250338c 100644 --- a/unsupported/test/cxx11_eventcount.cpp +++ b/unsupported/test/cxx11_eventcount.cpp @@ -16,12 +16,12 @@ // implementation of rand() is already thread safe int rand_reentrant(unsigned int* s) { #ifdef EIGEN_COMP_MSVC_STRICT + EIGEN_UNUSED_VARIABLE(s); return rand(); #else return rand_r(s); -endif -} #endif +} static void test_basic_eventcount() { @@ -106,7 +106,7 @@ static void test_stress_eventcount() consumers.emplace_back(new std::thread([&ec, &queues, &waiters, i]() { EventCount::Waiter& w = waiters[i]; unsigned int rnd = static_cast(std::hash()(std::this_thread::get_id())); - for (int j = 0; j < kEvents; k++) { + for (int j = 0; j < kEvents; j++) { unsigned idx = rand_reentrant(&rnd) % kQueues; if (queues[idx].Pop()) continue; j--; -- cgit v1.2.3