diff options
Diffstat (limited to 'misc/cgo/gmp')
-rw-r--r-- | misc/cgo/gmp/Makefile | 4 | ||||
-rw-r--r-- | misc/cgo/gmp/gmp.go | 2 | ||||
-rw-r--r-- | misc/cgo/gmp/pi.go | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/misc/cgo/gmp/Makefile b/misc/cgo/gmp/Makefile index fc6209f27..d9390c146 100644 --- a/misc/cgo/gmp/Makefile +++ b/misc/cgo/gmp/Makefile @@ -28,11 +28,11 @@ include ../../../src/Make.pkg # Computes 1000 digits of pi; single-threaded. pi: install pi.go - $(GC) pi.go + $(GC) $(GCFLAGS) $(GCIMPORTS) pi.go $(LD) -o $@ pi.$O # Computes 200 Fibonacci numbers; multi-threaded. fib: install fib.go - $(GC) fib.go + $(GC) $(GCFLAGS) $(GCIMPORTS) fib.go $(LD) -o $@ fib.$O diff --git a/misc/cgo/gmp/gmp.go b/misc/cgo/gmp/gmp.go index 3dbc022ce..9325d8bfd 100644 --- a/misc/cgo/gmp/gmp.go +++ b/misc/cgo/gmp/gmp.go @@ -179,7 +179,7 @@ func (z *Int) SetInt64(x int64) *Int { // SetString interprets s as a number in the given base // and sets z to that value. The base must be in the range [2,36]. // SetString returns an error if s cannot be parsed or the base is invalid. -func (z *Int) SetString(s string, base int) os.Error { +func (z *Int) SetString(s string, base int) error { z.doinit() if base < 2 || base > 36 { return os.EINVAL diff --git a/misc/cgo/gmp/pi.go b/misc/cgo/gmp/pi.go index 45f61abbd..3e40624cf 100644 --- a/misc/cgo/gmp/pi.go +++ b/misc/cgo/gmp/pi.go @@ -38,8 +38,8 @@ POSSIBILITY OF SUCH DAMAGE. package main import ( - big "gmp" "fmt" + big "gmp" "runtime" ) |