From: Philippe Waroquiers Date: Tue, 2 Sep 2014 18:34:25 +0000 (+0000) Subject: Fix wrong operator (detected by Coverity) X-Git-Tag: svn/VALGRIND_3_10_0~73 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3ccc76b172e97e889cfe9713c7a93d9318fa159;p=thirdparty%2Fvalgrind.git Fix wrong operator (detected by Coverity) git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14434 --- diff --git a/coregrind/m_scheduler/scheduler.c b/coregrind/m_scheduler/scheduler.c index 6ed837ad9c..effd0cedaf 100644 --- a/coregrind/m_scheduler/scheduler.c +++ b/coregrind/m_scheduler/scheduler.c @@ -1246,7 +1246,7 @@ VgSchedReturnCode VG_(scheduler) ( ThreadId tid ) } else { VG_(debugLog)(0,"sched", "WARNING: pthread stack cache cannot be disabled!\n"); - VG_(clo_sim_hints) &= !SimHint2S(SimHint_no_nptl_pthread_stackcache); + VG_(clo_sim_hints) &= ~SimHint2S(SimHint_no_nptl_pthread_stackcache); /* Remove SimHint_no_nptl_pthread_stackcache from VG_(clo_sim_hints) to avoid having a msg for all following threads. */ }