diff options
author | Russ Cox <rsc@golang.org> | 2010-04-20 22:51:48 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2010-04-20 22:51:48 -0700 |
commit | b468a475a424b1b9c3dd78f00eabcdda4051c060 (patch) | |
tree | 0da234cc281a813bab064c162a58b91425052ceb /src | |
parent | 242ea6802ef34870bd05659d83eb775a39a39688 (diff) | |
download | golang-b468a475a424b1b9c3dd78f00eabcdda4051c060.tar.gz |
big: fix build - start with zero in scanN
R=gri, eds
CC=golang-dev
http://codereview.appspot.com/947042
Diffstat (limited to 'src')
-rw-r--r-- | src/pkg/big/nat.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/big/nat.go b/src/pkg/big/nat.go index 6c7e6e722..8843d4354 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 { |