From: Josef Weidendorfer Date: Thu, 24 May 2007 20:47:10 +0000 (+0000) Subject: callgrind_annotate: Fix a warning X-Git-Tag: svn/VALGRIND_3_3_0~264 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=af3e00ab6f84081479fbf3791e596e4d0dbe2ca4;p=thirdparty%2Fvalgrind.git callgrind_annotate: Fix a warning Port a fix for ""Possible precedence problem" from cachegrind/cg_annotate, see r1713. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6749 --- diff --git a/callgrind/callgrind_annotate.in b/callgrind/callgrind_annotate.in index f80a36ec54..5c762e24e7 100644 --- a/callgrind/callgrind_annotate.in +++ b/callgrind/callgrind_annotate.in @@ -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;