-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Closed
Labels
Milestone
Description
cmd/compile/internal/big/natconv.go:304: comparison of identifier nbits >= 0 is always true
math/big/natconv.go:304: comparison of identifier nbits >= 0 is always true
nbits is an unsigned, and a >=0 comparison is performed against it which is always true.
nbits := uint(_W) // number of unprocessed bits in w
...
// convert digits of most-significant word (omit leading zeros)
for nbits >= 0 && w != 0 {
i--
(see https://groups.google.com/d/msg/golang-nuts/O4k42ETtWKQ/_ajX7fz5LUEJ for more details)