Skip to content
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

Merged
merged 2 commits into from
Feb 15, 2024

Conversation

couet
Copy link
Member

@couet couet commented Feb 5, 2024

As requested here: #9917

@couet couet requested a review from lmoneta as a code owner February 5, 2024 13:35
@phsft-bot
Copy link
Collaborator

Starting build on ROOT-performance-centos8-multicore/soversion, ROOT-ubuntu2204/nortcxxmod, ROOT-ubuntu2004/python3, mac12arm/cxx20, windows10/default
How to customize builds

Copy link

github-actions bot commented Feb 5, 2024

Test Results

    10 files      10 suites   1d 17h 19m 31s ⏱️
 2 498 tests  2 498 ✅ 0 💤 0 ❌
23 879 runs  23 879 ✅ 0 💤 0 ❌

Results for commit 2e791b9.

fFirst = std::max(first, 0);
if (last>nCells) Warning("TAxis::SetRange","last > fNbins, fNbins is used");
Copy link
Member

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");

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@phsft-bot
Copy link
Collaborator

Starting build on ROOT-performance-centos8-multicore/soversion, ROOT-ubuntu2204/nortcxxmod, ROOT-ubuntu2004/python3, mac12arm/cxx20, windows10/default
How to customize builds

Copy link
Member

@lmoneta lmoneta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@couet couet merged commit c6ded32 into root-project:master Feb 15, 2024
11 of 16 checks passed
@couet couet deleted the setrange-fix branch February 15, 2024 15:14
@phsft-bot
Copy link
Collaborator

Build failed on mac12arm/cxx20.
Running on 194.12.161.128:/Users/sftnight/build/workspace/root-pullrequests-build
See console output.

Errors:

  • [2024-02-15T19:38:05.566Z] CMake Error at /Users/sftnight/build/workspace/root-pullrequests-build/rootspi/jenkins/root-build.cmake:1128 (message):

lobis pushed a commit to lobis/root that referenced this pull request Apr 10, 2024
…oject#14589)

* Print a warning when the range given to SetRange is invalid.

* Fix comment
silverweed pushed a commit to silverweed/root that referenced this pull request Aug 19, 2024
…oject#14589)

* Print a warning when the range given to SetRange is invalid.

* Fix comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants