Skip to content

Commit 3d3cb5d

Browse files
authored
[PWGLF] Use std::abs for charge comparison (#17489)
1 parent 3edd9e5 commit 3d3cb5d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

PWGLF/Utils/inelGt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ struct ParticleCounter {
114114
continue;
115115
}
116116
// is charged
117-
if (abs(p->Charge()) == 0) {
117+
if (std::abs(p->Charge()) == 0) {
118118
continue;
119119
}
120120
// in acceptance

0 commit comments

Comments
 (0)