cmd/compile: update error messages in Mpint, Mpflt methods

CL 20909 gave Mpint methods nice go-like names, but it
didn't update the names in the error strings. Fix them.

Same for a couple of Mpflt methods.

Change-Id: I9c99653d4b922e32fd5ba18aba768a589a4c7869
Reviewed-on: https://go-review.googlesource.com/30091
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
Alberto Donizetti 2016-09-30 11:27:52 +02:00 committed by Matthew Dempsky
parent 962dc4b44d
commit 01661612e4
2 changed files with 13 additions and 13 deletions

View file

@ -128,7 +128,7 @@ func (a *Mpflt) Float64() float64 {
// check for overflow
if math.IsInf(x, 0) && nsavederrors+nerrors == 0 {
yyerror("mpgetflt ovf")
yyerror("ovf in Mpflt Float64")
}
return x + 0 // avoid -0 (should not be needed, but be conservative)
@ -140,7 +140,7 @@ func (a *Mpflt) Float32() float64 {
// check for overflow
if math.IsInf(x, 0) && nsavederrors+nerrors == 0 {
yyerror("mpgetflt32 ovf")
yyerror("ovf in Mpflt Float32")
}
return x + 0 // avoid -0 (should not be needed, but be conservative)