Skip to content

Commit 55976f2

Browse files
authored
Merge pull request #48950 from iarspider/patch-16
PFAnalyzer.cc: use std::abs
2 parents 1cf5c12 + 8b0614d commit 55976f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DQMOffline/ParticleFlow/plugins/PFAnalyzer.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,10 +389,10 @@ std::string PFAnalyzer::stringWithDecimals(int bin, std::vector<double> bins) {
389389
signStringHigh = "m";
390390
return Form("%s%.0fp%.0f_%s%.0fp%.0f",
391391
signStringLow.c_str(),
392-
abs(bins[bin]),
392+
std::abs(bins[bin]),
393393
newDigit,
394394
signStringHigh.c_str(),
395-
abs(bins[bin + 1]),
395+
std::abs(bins[bin + 1]),
396396
newDigit2);
397397
}
398398

0 commit comments

Comments
 (0)