From: khizmax Date: Fri, 4 Dec 2015 18:18:42 +0000 (+0300) Subject: Fixed an error in Map_InsDel_func test for FeldmanHahMap X-Git-Tag: v2.1.0~46 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=67f36ec3972049d42aff148347dc5a1ae769e14b;p=libcds.git Fixed an error in Map_InsDel_func test for FeldmanHahMap --- 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: