summaryrefslogtreecommitdiff
path: root/misc/cgo/gmp/gmp.go
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2009-11-05 23:18:06 -0800
committerRobert Griesemer <gri@golang.org>2009-11-05 23:18:06 -0800
commitc4559f3ecb8c8297dd554a7dffb55e773cdb3f5f (patch)
tree71800076286b3715cf33f6d3d82434c8e4aa5ba8 /misc/cgo/gmp/gmp.go
parent415dda6697bf2e5f8ea9e44e91bd77b9734835c0 (diff)
downloadgolang-c4559f3ecb8c8297dd554a7dffb55e773cdb3f5f.tar.gz
gofmt -w misc
R=rsc http://go/go-review/1025004
Diffstat (limited to 'misc/cgo/gmp/gmp.go')
-rw-r--r--misc/cgo/gmp/gmp.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/misc/cgo/gmp/gmp.go b/misc/cgo/gmp/gmp.go
index a31f7407c..d26bb4a73 100644
--- a/misc/cgo/gmp/gmp.go
+++ b/misc/cgo/gmp/gmp.go
@@ -115,8 +115,8 @@ import (
// An Int represents a signed multi-precision integer.
// The zero value for an Int represents the value 0.
type Int struct {
- i C.mpz_t;
- init bool;
+ i C.mpz_t;
+ init bool;
}
// NewInt returns a new Int initialized to x.
@@ -140,7 +140,7 @@ func (z *Int) doinit() {
// Bytes returns z's representation as a big-endian byte array.
func (z *Int) Bytes() []byte {
- b := make([]byte, (z.Len() + 7) / 8);
+ b := make([]byte, (z.Len() + 7)/8);
n := C.size_t(len(b));
C.mpz_export(unsafe.Pointer(&b[0]), &n, 1, 1, 1, 0, &z.i[0]);
return b[0:n];