From 67f36ec3972049d42aff148347dc5a1ae769e14b Mon Sep 17 00:00:00 2001 From: khizmax Date: Fri, 4 Dec 2015 21:18:42 +0300 Subject: [PATCH] Fixed an error in Map_InsDel_func test for FeldmanHahMap --- tests/unit/map2/map_insdel_func.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/map2/map_insdel_func.h b/tests/unit/map2/map_insdel_func.h index d6dd3d5f..fcc85430 100644 --- a/tests/unit/map2/map_insdel_func.h +++ b/tests/unit/map2/map_insdel_func.h @@ -39,7 +39,7 @@ namespace map2 { size_t nData; atomics::atomic nUpdateCall; atomics::atomic bInitialized; - cds::OS::ThreadId threadId ; // insert thread id + cds::OS::ThreadId threadId; // inserter thread id typedef cds::sync::spin_lock< cds::backoff::pause > lock_type; mutable lock_type m_access; @@ -218,7 +218,7 @@ namespace map2 { template void operator()( Val& cur, Val * old ) { - operator()( old != nullptr, cur.first, cur.second ); + operator()( old == nullptr, cur.first, cur.second ); } private: -- 2.34.1