-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[core] do not assert when casting huge enum uint64_t into int64_t #20925
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
base: master
Are you sure you want to change the base?
Conversation
even if it becomes negative Fixes root-project#17697
pcanal
left a comment
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.
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)
|
Do we maybe need a unit test for this? |
Test Results 22 files 22 suites 3d 14h 5m 1s ⏱️ For more details on these failures, see this check. Results for commit e09b57f. ♻️ This comment has been updated with latest results. |
all the credit goes to ferdymercury.
all the credit goes to @ferdymercury.
|
I added a test and restarted the builds. Let's see how builds go and then we can merge. |
|
test seems to fail on Windows. Maybe |
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: