-
Notifications
You must be signed in to change notification settings - Fork 302
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/number: possible out of range error avoiding
Case when r.Increment > 0 and r.IncrementScale == len(scales) in *Decimal.ConvertFloat method is taken into account. It led to unexpected out of range panic. fixes golang/go#42147 Change-Id: Ic26e67010b766bdbd322a3853489f6d1ecb0dcfc Reviewed-on: https://go-review.googlesource.com/c/text/+/265021 Reviewed-by: Marcel van Lohuizen <[email protected]> Trust: Russ Cox <[email protected]>
- Loading branch information
1 parent
72ead5f
commit 305da72
Showing
2 changed files
with
6 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters