]> Cypherpunks repositories - gostls13.git/commitdiff
fix double declaration of g
authorRob Pike <r@golang.org>
Thu, 8 May 2008 00:32:58 +0000 (17:32 -0700)
committerRob Pike <r@golang.org>
Thu, 8 May 2008 00:32:58 +0000 (17:32 -0700)
SVN=118016

src/lib/fmt.go

index f957167c7101d502c1422c5216791ad5271e2791..8c4b24962634740afcb1460be79c040e446a2f10 100644 (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);