From 6b6ef47dd82e168b8ccf7b4fd1a512baa8fd6276 Mon Sep 17 00:00:00 2001 From: ferdymercury Date: Thu, 21 Mar 2024 10:34:49 +0100 Subject: [PATCH] fix while --- hist/hist/src/THnBase.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hist/hist/src/THnBase.cxx b/hist/hist/src/THnBase.cxx index f7c3457625f87..ad0578c13bfef 100644 --- a/hist/hist/src/THnBase.cxx +++ b/hist/hist/src/THnBase.cxx @@ -304,7 +304,7 @@ TH1* THnBase::CreateHist(const char* name, const char* title, if (labels) { TIter iL(labels); Int_t i = 1; - for (auto lb = static_cast(iL())) { + while (auto lb = static_cast(iL())) { hax[d]->SetBinLabel(i,lb->String().Data()); i++; }