[core] do not assert when casting huge enum uint64_t into int64_t#20925
Merged
Conversation
even if it becomes negative Fixes root-project#17697
pcanal
approved these changes
Jan 16, 2026
Member
pcanal
left a comment
There was a problem hiding this comment.
I suppose this is an okay solution. It would be even better if we could return the correct value (would likely require more significant changes)
Member
|
Do we maybe need a unit test for this? |
Test Results 22 files 22 suites 3d 15h 46m 38s ⏱️ For more details on these failures, see this check. Results for commit 8da579a. ♻️ This comment has been updated with latest results. |
dpiparo
added a commit
to ferdymercury/root
that referenced
this pull request
Jan 18, 2026
all the credit goes to ferdymercury.
dpiparo
added a commit
to ferdymercury/root
that referenced
this pull request
Jan 18, 2026
all the credit goes to @ferdymercury.
Member
|
I added a test and restarted the builds. Let's see how builds go and then we can merge. |
dpiparo
approved these changes
Jan 18, 2026
Collaborator
Author
|
test seems to fail on Windows. Maybe |
bellenot
requested changes
Jan 19, 2026
all the credit goes to @ferdymercury and @bellenot for crafting the test.
Member
|
2 commits were fused to ease future bisects. |
dpiparo
added a commit
to dpiparo/root
that referenced
this pull request
Jan 20, 2026
all the credit goes to @ferdymercury and @bellenot for crafting the test. (cherry picked from commit 89f9c42)
dpiparo
added a commit
to dpiparo/root
that referenced
this pull request
Jan 20, 2026
all the credit goes to @ferdymercury and @bellenot for crafting the test. (cherry picked from commit 89f9c42)
dpiparo
added a commit
that referenced
this pull request
Jan 21, 2026
all the credit goes to @ferdymercury and @bellenot for crafting the test. (cherry picked from commit 89f9c42)
dpiparo
added a commit
that referenced
this pull request
Jan 21, 2026
all the credit goes to @ferdymercury and @bellenot for crafting the test. (cherry picked from commit 89f9c42)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This Pull request:
Changes or fixes:
even if it becomes negative due to the overflow.
Fixes #17697
Tested that the Python reproducer in #17697 no longer crashes
Checklist: