diff options
Diffstat (limited to 'src/pkg/big')
-rw-r--r-- | src/pkg/big/int.go | 4 | ||||
-rw-r--r-- | src/pkg/big/int_test.go | 4 | ||||
-rw-r--r-- | src/pkg/big/nat.go | 4 |
3 files changed, 4 insertions, 8 deletions
diff --git a/src/pkg/big/int.go b/src/pkg/big/int.go index 5db4f0901..235becfeb 100644 --- a/src/pkg/big/int.go +++ b/src/pkg/big/int.go @@ -27,9 +27,7 @@ func (z *Int) New(x int64) *Int { // NewInt allocates and returns a new Int set to x. -func NewInt(x int64) *Int { - return new(Int).New(x); -} +func NewInt(x int64) *Int { return new(Int).New(x) } // Set sets z to x. diff --git a/src/pkg/big/int_test.go b/src/pkg/big/int_test.go index 442b76fcc..a89b7aa9e 100644 --- a/src/pkg/big/int_test.go +++ b/src/pkg/big/int_test.go @@ -264,8 +264,8 @@ func checkDiv(x, y []byte) bool { type divTest struct { - x, y string; - q, r string; + x, y string; + q, r string; } diff --git a/src/pkg/big/nat.go b/src/pkg/big/nat.go index 9a59f049c..99ddefb62 100644 --- a/src/pkg/big/nat.go +++ b/src/pkg/big/nat.go @@ -482,6 +482,4 @@ func shiftRight(dst, src []Word, n int) { // greaterThan returns true iff (x1<<_W + x2) > (y1<<_W + y2) -func greaterThan(x1, x2, y1, y2 Word) bool { - return x1 > y1 || x1 == y1 && x2 > y2; -} +func greaterThan(x1, x2, y1, y2 Word) bool { return x1 > y1 || x1 == y1 && x2 > y2 } |