-
Notifications
You must be signed in to change notification settings - Fork 7.9k
ext/bcmath: Made the same changes to _bc_do_add
as _bc_do_sub
#14196
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
ext/bcmath: Made the same changes to _bc_do_add
as _bc_do_sub
#14196
Conversation
I forgot fixing comments |
done |
CI is red |
It looks like the XML test is failing. Merge the latest master |
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.
Nice work, seems right. Also ran an exhaustive test for the 32-bit case and works fine.
I think it would be good to add a regression test for the issue fixed here though, because the CI didn't catch it (if possible): 64eb41a
@nielsdos The other CIs certainly did not detect this. This is due to a rear overrun, but I can't think of any test to detect this... Do you have any good ideas? (edit) I reverted the fix and ran the nightly, but it didn't detect anything. |
Hmm, I'll merge this for now and add tests later if possible. |
benchmark codes:
1:
2:
3:
before
after
FYI: after the first commit