diff options
author | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2016-04-19 15:27:09 -0700 |
---|---|---|
committer | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2016-04-19 15:27:09 -0700 |
commit | 04f954956d407fbf6cf7c2be3a993460aa608177 (patch) | |
tree | ae11ea508ed9e4ab9f68f732cfe4250b0715fa0e | |
parent | 5b1106c56b64e4691c2849184d416631c689348a (diff) |
Fixed a few typos
-rw-r--r-- | unsupported/test/cxx11_eventcount.cpp | 6 | ||||
-rw-r--r-- | unsupported/test/cxx11_runqueue.cpp | 4 |
2 files changed, 5 insertions, 5 deletions
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<unsigned int>(std::hash<std::thread::id>()(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--; diff --git a/unsupported/test/cxx11_runqueue.cpp b/unsupported/test/cxx11_runqueue.cpp index 5cfb38b2e..4207824bf 100644 --- a/unsupported/test/cxx11_runqueue.cpp +++ b/unsupported/test/cxx11_runqueue.cpp @@ -18,12 +18,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 +} void test_basic_runqueue() { |