From a3ccc76b172e97e889cfe9713c7a93d9318fa159 Mon Sep 17 00:00:00 2001 From: Philippe Waroquiers Date: Tue, 2 Sep 2014 18:34:25 +0000 Subject: [PATCH] Fix wrong operator (detected by Coverity) git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14434 --- coregrind/m_scheduler/scheduler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */ } -- 2.47.2