-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix an age-old bug with
FromFloat
handling of negatives. (#268)
* Fix an age-old bug with `FromFloat` handling of negatives. * (M) pkg/yang/types_builtin(_test)?.go - This change squashes a bug that has existed for a long time in `FromFloat`, but only shows up on arm64. I finally have an arm64 machine and so found the issue. It was originally reported in openconfig/ygot#766. The issue is that uint64 of a negative float64 is undefined -- and on arm64 on darwin returns 0, which made some test cases fail only on this architecture. * Add missing comment. * `gofmt`
- Loading branch information
Showing
2 changed files
with
50 additions
and
2 deletions.
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