Skip to content

Commit

Permalink
[hist] fix similar bug in TSpline5_saveas
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdymercury authored and dpiparo committed Apr 3, 2024
1 parent 05eec86 commit 7784644
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hist/hist/src/TSpline.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7784644

Please sign in to comment.