diff options
author | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2016-09-05 11:21:10 +0300 |
---|---|---|
committer | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2016-09-05 11:21:10 +0300 |
commit | 7d02bc6127d2a7ba2453cddebd810f0dc08de9e0 (patch) | |
tree | c48bb21dc8aab61765d1c0f0c527add6479de642 /test/tests/shared_fs_mutex.cpp | |
parent | e458b2912bc8fd27f4afc720d4f5989c8d9dc9ab (diff) |
Fixed various warnings. Build time is also now tractable on my fairly ancient laptop after I severely pruned the default build targets down to the bare minimum.
Diffstat (limited to 'test/tests/shared_fs_mutex.cpp')
-rw-r--r-- | test/tests/shared_fs_mutex.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/tests/shared_fs_mutex.cpp b/test/tests/shared_fs_mutex.cpp index 2d6675d9..f49a3aac 100644 --- a/test/tests/shared_fs_mutex.cpp +++ b/test/tests/shared_fs_mutex.cpp @@ -287,7 +287,7 @@ static auto TestSharedFSMutexCorrectnessChildWorker = BOOST_KERNELTEST_V1_NAMESP if(oldval != 0) return "Child " + std::to_string(childidx) + " holding exclusive lock yet " + std::to_string(oldval) + " users hold the shared lock!"; oldval = shmem->current_exclusive.exchange(-1); - if(oldval != childidx) + if(oldval != (long) childidx) return "Child " + std::to_string(childidx) + " released exclusive lock to find child " + std::to_string(oldval) + " had stolen my lock!"; } else if(shmem->testtype == shared_memory::test_type::shared || shmem->testtype == shared_memory::test_type::both) |