Skip to content

Commit 73f1d5b

Browse files
committed
o2linter fix
1 parent fa2bb15 commit 73f1d5b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

PWGLF/TableProducer/Strangeness/cascqaanalysis.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ struct Cascqaanalysis {
199199
template <typename TAxisType>
200200
static void setEventTypeAxisLabels(TAxisType* axis)
201201
{
202-
const char* labels[3] = {"INEL", "INEL>0", "INEL>1"};
203-
for (int i = 0; i < 3; ++i) {
202+
const char* labels[] = {"INEL", "INEL>0", "INEL>1"};
203+
for (int i = 0; i < static_cast<int>(sizeof(labels) / sizeof(labels[0])); ++i) {
204204
axis->SetBinLabel(i + 1, labels[i]);
205205
}
206206
}

0 commit comments

Comments
 (0)