Commit 9995dec9 authored by Russ Cox's avatar Russ Cox

big: fix memory corruption in nat.shr

R=gri
CC=golang-dev
https://golang.org/cl/1084041
parent 23c0aa39
......@@ -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()
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment