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

fix an edge case where overflow check in QuoRem is unreachable #322

Merged
merged 1 commit into from Jan 15, 2024

Conversation

frankli0324
Copy link
Contributor

pretty straightforward, int32 overflows before the overflow check

@frankli0324
Copy link
Contributor Author

it's also worth noting that https://github.com/shopspring/decimal/blob/master/decimal_test.go#L2164C1-L2171 didn't include tests for that

decimal.go Show resolved Hide resolved
@mwoss mwoss merged commit b844c58 into shopspring:master Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants