Skip to content

Commit f056bb9

Browse files
authored
Use std::abs for charge comparison
1 parent 4232efa commit f056bb9

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)