diff options
| author | Robert Griesemer <gri@golang.org> | 2015-01-30 15:57:38 -0800 |
|---|---|---|
| committer | Robert Griesemer <gri@golang.org> | 2015-02-03 18:43:51 +0000 |
| commit | 4c91c0d07b7da552a57ec2b7a33b1d6b46d4889c (patch) | |
| tree | 71a9ab4b0d1bfd262d8b0594b39cde32b4713ad2 /src/math/big/float.go | |
| parent | 2e5b065ac24912be82e7082eeb136afd18d9734b (diff) | |
| download | go-4c91c0d07b7da552a57ec2b7a33b1d6b46d4889c.tar.xz | |
math/big: build Float.Format on top of Float.Append
Change-Id: I444eec24467f827caa5c88a1c5ae5bce92508b98
Reviewed-on: https://go-review.googlesource.com/3750
Reviewed-by: Alan Donovan <adonovan@google.com>
Diffstat (limited to 'src/math/big/float.go')
| -rw-r--r-- | src/math/big/float.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/math/big/float.go b/src/math/big/float.go index 7047a6d996..1c3fcb5f74 100644 --- a/src/math/big/float.go +++ b/src/math/big/float.go @@ -176,7 +176,7 @@ func (x *Float) validate() { const msb = 1 << (_W - 1) m := len(x.mant) if x.mant[m-1]&msb == 0 { - panic(fmt.Sprintf("msb not set in last word %#x of %s", x.mant[m-1], x.pstring())) + panic(fmt.Sprintf("msb not set in last word %#x of %s", x.mant[m-1], x.Format('p', 0))) } if x.prec <= 0 { panic(fmt.Sprintf("invalid precision %d", x.prec)) |
