Commit a074e374 authored by Robert Griesemer's avatar Robert Griesemer

gofmt -w misc

R=rsc
http://go/go-review/1025004
parent 52c549fc
......@@ -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];
......
......@@ -90,7 +90,7 @@ func main() {
d = extractDigit();
}
eliminateDigit(d);
fmt.Printf("%c", d + '0');
fmt.Printf("%c", d+'0');
if i++; i%50 == 0 {
fmt.Printf("\n");
......
......@@ -40,4 +40,3 @@ func Puts(s string) {
C.free(unsafe.Pointer(p));
C.fflushstdout();
}
......@@ -7,6 +7,6 @@ package main
import "stdio"
func main() {
// stdio.Stdout.WriteString("hello, world\n");
// stdio.Stdout.WriteString("hello, world\n");
stdio.Puts("hello, world");
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment