Skip to content

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

Merged
mwoss merged 1 commit intoshopspring:masterfrom
frankli0324:patch-1
Jan 15, 2024
Merged

fix an edge case where overflow check in QuoRem is unreachable#322
mwoss merged 1 commit intoshopspring:masterfrom
frankli0324:patch-1

Conversation

@frankli0324
Copy link
Copy Markdown
Contributor

pretty straightforward, int32 overflows before the overflow check

@frankli0324
Copy link
Copy Markdown
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

Comment thread decimal.go
@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.

2 participants