Skip to content

Commit 7ccc4f0

Browse files
committed
Use size_t for iterator and correct header
1 parent 0ddc0ed commit 7ccc4f0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

PWGDQ/Tasks/taskJPsiMu.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727

2828
#include <chrono>
2929
#include <cmath>
30+
#include <cstddef>
3031
#include <cstdint>
3132
#include <string>
3233
#include <vector>
@@ -258,7 +259,7 @@ double getWeight(const double pT, const std::vector<double>& pT_bins, const std:
258259
{
259260

260261
int eff_bin = -1;
261-
for (uint8_t b = 0; b < pT_bins.size() - 1; ++b) {
262+
for (size_t b = 0; b < pT_bins.size() - 1; ++b) {
262263
// Shift pT index by one to account for the VARIABLE_WIDTH entry in the axis configuration
263264
if (pT >= pT_bins[b + 1] && pT < pT_bins[b + 2]) {
264265
eff_bin = b;

0 commit comments

Comments
 (0)