]> Cypherpunks repositories - gostls13.git/commit
math/big: fix TestShiftOverlap for test -count arguments > 1
authorSparrowLii <liyuancylx@gmail.com>
Mon, 24 Aug 2020 06:43:32 +0000 (14:43 +0800)
committerRobert Griesemer <gri@golang.org>
Tue, 25 Aug 2020 17:04:40 +0000 (17:04 +0000)
commit41bc0a1713b9436e96c2d64211ad94e42cafd591
tree25a4e76b64d355116a4d86e2d1910a0b6a294652
parentd3f6e2f30083749ce8ab0668e324a523b6ba9ead
math/big: fix TestShiftOverlap for test -count arguments > 1

Don't overwrite incoming test data.

The change uses copy instead of assigning statement to avoid this.

Change-Id: Ib907101822d811de5c45145cb9d7961907e212c3
Reviewed-on: https://go-review.googlesource.com/c/go/+/250137
Run-TryBot: Emmanuel Odeke <emm.odeke@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/math/big/arith_test.go