1
0
mirror of https://github.com/golang/go synced 2024-11-25 03:07:56 -07:00

big: fix memory corruption in nat.shr

R=gri
CC=golang-dev
https://golang.org/cl/1084041
This commit is contained in:
Russ Cox 2010-05-03 14:28:45 -07:00
parent 23c0aa3916
commit 9995dec9da

View File

@ -785,7 +785,7 @@ func (z nat) shr(x nat, s uint) nat {
}
z = z.make(n)
shrVW(&z[0], &x[m-n], Word(s%_W), m)
shrVW(&z[0], &x[m-n], Word(s%_W), n)
return z.norm()
}