Skip to content

Commit d97a509

Browse files
committed
Iterator type must the std::size_t
1 parent 376be63 commit d97a509

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎PWGDQ/Core/VarManager.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2847,7 +2847,7 @@ void VarManager::FillEventTracks(T const& tracks, float* values)
28472847
for (const auto& d : dcazValues) {
28482848
const double absD = std::abs(d);
28492849

2850-
for (int i = 0; i < thresholds.size(); ++i) {
2850+
for (std::size_t i = 0; i < thresholds.size(); ++i) {
28512851
if (absD > thresholds[i]) {
28522852
++counters[i];
28532853
}
@@ -2859,7 +2859,7 @@ void VarManager::FillEventTracks(T const& tracks, float* values)
28592859
if (totalTracks > 0) {
28602860
const float inverseTotalTracks = 1.0f / static_cast<float>(totalTracks);
28612861

2862-
for (int i = 0; i < thresholds.size(); ++i) {
2862+
for (std::size_t i = 0; i < thresholds.size(); ++i) {
28632863
values[variableIndices[i]] = static_cast<float>(counters[i]) * inverseTotalTracks;
28642864
}
28652865
} else {

0 commit comments

Comments
 (0)