]> Cypherpunks repositories - gostls13.git/commit
strconv: fix Eisel-Lemire for negative zero
authorNigel Tao <nigeltao@golang.org>
Thu, 22 Oct 2020 12:59:00 +0000 (23:59 +1100)
committerNigel Tao <nigeltao@golang.org>
Thu, 22 Oct 2020 21:12:43 +0000 (21:12 +0000)
commit4ce9ea52c9ac48f85fba1233b6e7d563f89dff8b
tree79fbfd45859e78c9b8d4f9a74f98d456b2cd8642
parentc92bfac01e9e8319822f472fd11a51bf28762125
strconv: fix Eisel-Lemire for negative zero

This is somewhat academic (and no tests failed before this commit),
since func atof64 only calls func eiselLemire when func atof64exact
fails, and func atof64exact doesn't fail when parsing positive or
negative zeroes. But it's still worth fixing.

Change-Id: Ibe6ef4c8fd96827673b711d5456003fbc447e39c
Reviewed-on: https://go-review.googlesource.com/c/go/+/264140
Trust: Nigel Tao <nigeltao@golang.org>
Trust: Robert Griesemer <gri@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/strconv/eisel_lemire.go