aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/math
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2020-11-20 15:19:29 -0800
committerIan Lance Taylor <iant@golang.org>2020-11-20 17:09:30 -0800
commitdec42fe4e3669409383d44d69a5992cd0c50fdb0 (patch)
treeecf4e3687f27e314879254b361bd7756d211a1ac /libgo/go/math
parent82e5048e70ef790559ba768132b4afd266a30fee (diff)
downloadgcc-dec42fe4e3669409383d44d69a5992cd0c50fdb0.zip
gcc-dec42fe4e3669409383d44d69a5992cd0c50fdb0.tar.gz
gcc-dec42fe4e3669409383d44d69a5992cd0c50fdb0.tar.bz2
libgo: update to Go 1.15.5 release
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/272146
Diffstat (limited to 'libgo/go/math')
-rw-r--r--libgo/go/math/big/nat.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/math/big/nat.go b/libgo/go/math/big/nat.go
index 6a3989b..8c43de6 100644
--- a/libgo/go/math/big/nat.go
+++ b/libgo/go/math/big/nat.go
@@ -928,7 +928,7 @@ func (z nat) divRecursiveStep(u, v nat, depth int, tmp *nat, temps []*nat) {
// Now u < (v<<B), compute lower bits in the same way.
// Choose shift = B-1 again.
- s := B
+ s := B - 1
qhat := *temps[depth]
qhat.clear()
qhat.divRecursiveStep(u[s:].norm(), v[s:], depth+1, tmp, temps)