Commit 5caa9d15 authored by Keith Randall's avatar Keith Randall Committed by Andrew Gerrand
Browse files

[release-branch.go1.4] math/big: bug in AndNot(x,y) for x>0,y<0.

The comment says to use (y-1), but then we did add(y.abs, natOne).  We meant sub.

Fixes #9609

Change-Id: I4fe4783326ca082c05588310a0af7895a48fc779
Reviewed-on: https://go-review.googlesource.com/2961


Reviewed-by: default avatarRobert Griesemer <gri@golang.org>
(cherry picked from commit c6ddca2a)
Reviewed-on: https://go-review.googlesource.com/5001
parent b64f8f87
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment