1
0
mirror of https://github.com/golang/go synced 2024-11-11 21:50:21 -07:00

fix double declaration of g

SVN=118016
This commit is contained in:
Rob Pike 2008-05-07 17:32:58 -07:00
parent d222c65477
commit 37b8eb4648

View File

@ -346,7 +346,7 @@ func unpack(a double) (negative bool, exp int, num double) {
var e2 int;
e2, g = sys.frexp(a);
e := int(e2 * .301029995663981);
g := a * pow10(-e);
g = a * pow10(-e);
for g < 1 {
e--;
g = a * pow10(-e);