From d016febdb6017abd5872f3d8dc9244a673b46d0f Mon Sep 17 00:00:00 2001 From: Ioanna-Maria Panagou <56998382+joannapng@users.noreply.github.com> Date: Fri, 25 Aug 2023 09:00:11 +0200 Subject: [PATCH] Update ROperator_Slice.hxx --- tmva/sofie/inc/TMVA/ROperator_Slice.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tmva/sofie/inc/TMVA/ROperator_Slice.hxx b/tmva/sofie/inc/TMVA/ROperator_Slice.hxx index a3f607a60ce36..f38a6dee094f3 100644 --- a/tmva/sofie/inc/TMVA/ROperator_Slice.hxx +++ b/tmva/sofie/inc/TMVA/ROperator_Slice.hxx @@ -147,7 +147,7 @@ public: // negative axes - they count from the back if (iaxes[i] < 0) iaxes[i] = dim + iaxes[i]; size_t jaxis = static_cast(iaxes[i]); - assert(jaxis < dim - 1); + assert(jaxis < dim); size_t imax = fShapeInput[jaxis]; // find start/end/step for given axis IType start = (istart[i] >= 0) ? istart[i] : imax + istart[i];