]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
callgrind_annotate: Fix a warning
authorJosef Weidendorfer <Josef.Weidendorfer@gmx.de>
Thu, 24 May 2007 20:47:10 +0000 (20:47 +0000)
committerJosef Weidendorfer <Josef.Weidendorfer@gmx.de>
Thu, 24 May 2007 20:47:10 +0000 (20:47 +0000)
Port a fix for ""Possible precedence problem" from
cachegrind/cg_annotate, see r1713.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6749

callgrind/callgrind_annotate.in

index f80a36ec54b5de08ffa39e3f5b6f4b30198c9878..5c762e24e787b18d948ee10c8d5d751469482803 100644 (file)
@@ -867,7 +867,7 @@ sub print_summary_and_fn_totals ()
            if ($summary_CC->[$sort_order[$i]] >0) {
              $prop = $prop / $summary_CC->[$sort_order[$i]];
            }
-            $reached_all_thresholds &= ($prop >= $thresholds[$i]);
+            $reached_all_thresholds &&= ($prop >= $thresholds[$i]);
         }
         last if $reached_all_thresholds;