Skip to content

Commit

Permalink
use c++-style cast
Browse files Browse the repository at this point in the history
  • Loading branch information
fchinu committed Nov 22, 2024
1 parent 7a88ee9 commit dcaeee0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PWGHF/Tasks/pidStudies.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ struct pidStudies {
template <bool isV0, typename Cand>
void fillTree(Cand const& candidate, const int& flag)
{
float pseudoRndm = candidate.pt() * 1000. - (int64_t)(candidate.pt() * 1000);
float pseudoRndm = candidate.pt() * 1000. - static_cast<int64_t>(candidate.pt() * 1000);
if (candidate.pt() < ptMaxForDownSample && pseudoRndm > downSampleBkgFactor) {
return;
}
Expand Down

0 comments on commit dcaeee0

Please sign in to comment.