-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Print a warning when the range given to SetRange is invalid. #14589
Conversation
Starting build on |
Test Results 10 files 10 suites 1d 17h 19m 31s ⏱️ Results for commit 2e791b9. |
hist/hist/src/TAxis.cxx
Outdated
fFirst = std::max(first, 0); | ||
if (last>nCells) Warning("TAxis::SetRange","last > fNbins, fNbins is used"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here should be:
if (last>nCells) Warning("TAxis::SetRange","last > fNbins+1, fNbins+1 is used");
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Starting build on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Build failed on mac12arm/cxx20. Errors:
|
…oject#14589) * Print a warning when the range given to SetRange is invalid. * Fix comment
…oject#14589) * Print a warning when the range given to SetRange is invalid. * Fix comment
As requested here: #9917