Skip to content

Commit

Permalink
Merge pull request #31352 from slava77/patch-79
Browse files Browse the repository at this point in the history
to make static analyzer happy in RunningAverage
  • Loading branch information
cmsbuild committed Sep 4, 2020
2 parents 20a7acf + a11e5bf commit c2db05f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FWCore/Utilities/interface/RunningAverage.h
Expand Up @@ -29,7 +29,7 @@ namespace edm {

int upper() const {
auto lm = mean();
return lm += (std::abs(m_buffer[0] - lm) + std::abs(m_buffer[N / 2] - lm));
return lm + (std::abs(m_buffer[0] - lm) + std::abs(m_buffer[N / 2] - lm));
} // about 2 sigma

void update(unsigned int q) {
Expand Down

0 comments on commit c2db05f

Please sign in to comment.