]> Cypherpunks repositories - gostls13.git/commit
big: Several fixes to bitwise functions
authorEvan Shaw <chickencha@gmail.com>
Mon, 9 Aug 2010 17:21:54 +0000 (10:21 -0700)
committerRobert Griesemer <gri@golang.org>
Mon, 9 Aug 2010 17:21:54 +0000 (10:21 -0700)
commit28a0971caf78688ab879112dd1459926bab86aff
treeaba91303a8af08d4b3a27a753ea01b4909d1b7ea
parente2c7e53dcf0202895ba1e472ff9729fba37251ab
big: Several fixes to bitwise functions

Fixed:
* SetString calls in bitwise tests
* Aliasing problem with self bitwise test
* One test case that was just flat out wrong
* Slice panics in nat.or and nat.xor
* Aliasing problems in Int.And, Int.AndNot, Int.Or, Int.Xor

Fixes #1007.

R=gri
CC=golang-dev
https://golang.org/cl/1895049
src/pkg/big/int.go
src/pkg/big/int_test.go
src/pkg/big/nat.go