]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix wrong operator (detected by Coverity)
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Tue, 2 Sep 2014 18:34:25 +0000 (18:34 +0000)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Tue, 2 Sep 2014 18:34:25 +0000 (18:34 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14434

coregrind/m_scheduler/scheduler.c

index 6ed837ad9cd0bb58f865771518bfd5f7b009936e..effd0cedaf274dce1ed506f2d5186ac62ddcb087 100644 (file)
@@ -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. */
       }