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

Make sure all MonetaryAmounts are sanitized to avoid operation issues #173

Merged
merged 1 commit into from
Dec 19, 2021

Conversation

sjanel
Copy link
Owner

@sjanel sjanel commented Dec 19, 2021

Make sure the maximum number of digits for the integral internal data of MonetaryAmount is not more than std::numeric_limits<AmountType>::digits10 to avoid issues in some operators (such as divide for instance).

@sjanel sjanel added the bug Something isn't working label Dec 19, 2021
@sjanel sjanel force-pushed the bugfix/sanitizemonetaryamount branch from 6496361 to 487a1d3 Compare December 19, 2021 20:39
@sjanel sjanel merged commit 1bf7712 into main Dec 19, 2021
@sjanel sjanel deleted the bugfix/sanitizemonetaryamount branch December 19, 2021 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant