diff --git a/hist/hist/src/TSpline.cxx b/hist/hist/src/TSpline.cxx index d2ccb13ba8213..fe16e2455fa56 100644 --- a/hist/hist/src/TSpline.cxx +++ b/hist/hist/src/TSpline.cxx @@ -1735,7 +1735,7 @@ void TSpline5::SaveAs(const char *filename, Option_t * /*option*/) const nch = strlen(buffer); f->write(buffer,nch); snprintf(buffer,512," klow = int((x-fXmin)/fDelta);\n"); nch = strlen(buffer); f->write(buffer,nch); - snprintf(buffer,512," if (klow < fNp-1) klow = fNp-1;\n"); + snprintf(buffer,512," if (klow > fNp-1) klow = fNp-1;\n"); nch = strlen(buffer); f->write(buffer,nch); snprintf(buffer,512," } else {\n"); nch = strlen(buffer); f->write(buffer,nch);