From: Russ Cox Date: Wed, 21 Apr 2010 05:51:48 +0000 (-0700) Subject: big: fix build - start with zero in scanN X-Git-Tag: weekly.2010-04-27~59 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=1b70b61411842a458a82b40d14624081c7836c19;p=gostls13.git big: fix build - start with zero in scanN R=gri, eds CC=golang-dev https://golang.org/cl/947042 --- diff --git a/src/pkg/big/nat.go b/src/pkg/big/nat.go index 6c7e6e722d..8843d43549 100644 --- a/src/pkg/big/nat.go +++ b/src/pkg/big/nat.go @@ -432,7 +432,7 @@ func scanN(z []Word, s string, base int) ([]Word, int, int) { } // convert string - z = makeN(z, len(z), false) + z = z[0:0] for ; i < n; i++ { d := hexValue(s[i]) if 0 <= d && d < base {