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];