summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/pkg/big/nat.go2
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 {