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:
parent
23c0aa3916
commit
9995dec9da
@ -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()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user