-
Notifications
You must be signed in to change notification settings - Fork 7.9k
BCmath extension code reformatting #11896
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
Conversation
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.
Travis CI failure is legit.
|
||
prodlen = n1len+n2len+1; | ||
int prodlen = n1len + n2len + 1; |
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.
Note to myself: why is n2len
an int and probably should be size_t
. Ditto for prodlen
Okay so it was the type change of bc_precision which was causing an issue. If the rest of the CI is happy I'm going to merge as is, and we can follow-up the other nits/issues |
Note: S390X is a big-endian architecture compared to X86 being little-endian, as such the cast to |
Re-formats the BCmath extension to have consistent formatting. Mostly, it adds the spaces in calculations to have them more readable. Also: - removes unused headers - removes few variables which are used only once in the code Co-authored-by: George Peter Banyard <girgias@php.net>
This PR re-formats the bcmath extension to have consistent formatting. Mostly it adds the spaces in calculations to have them more readable.
Also: