aboutsummaryrefslogtreecommitdiff
path: root/src/math/big/nat.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/big/nat.go')
-rw-r--r--src/math/big/nat.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/math/big/nat.go b/src/math/big/nat.go
index 9b1a626c4c..607430064c 100644
--- a/src/math/big/nat.go
+++ b/src/math/big/nat.go
@@ -575,8 +575,8 @@ func (z nat) divLarge(u, uIn, v nat) (q, r nat) {
// determine if z can be reused
// TODO(gri) should find a better solution - this if statement
// is very costly (see e.g. time pidigits -s -n 10000)
- if alias(z, uIn) || alias(z, v) {
- z = nil // z is an alias for uIn or v - cannot reuse
+ if alias(z, u) || alias(z, uIn) || alias(z, v) {
+ z = nil // z is an alias for u or uIn or v - cannot reuse
}
q = z.make(m + 1)