From f038dae646bac2b31be98ab592c0e5206d2d96f5 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 6 Nov 2013 19:49:01 +0000 Subject: libgo: Update to October 24 version of master library. From-SVN: r204466 --- libgo/go/strconv/atof.go | 4 ++-- libgo/go/strconv/atoi.go | 7 ++++--- libgo/go/strconv/quote.go | 2 +- libgo/go/strconv/strconv_test.go | 3 +++ 4 files changed, 10 insertions(+), 6 deletions(-) (limited to 'libgo/go/strconv') diff --git a/libgo/go/strconv/atof.go b/libgo/go/strconv/atof.go index c9e243a..1dc521f 100644 --- a/libgo/go/strconv/atof.go +++ b/libgo/go/strconv/atof.go @@ -542,11 +542,11 @@ func atof64(s string) (f float64, err error) { // The errors that ParseFloat returns have concrete type *NumError // and include err.Num = s. // -// If s is not syntactically well-formed, ParseFloat returns err.Error = ErrSyntax. +// If s is not syntactically well-formed, ParseFloat returns err.Err = ErrSyntax. // // If s is syntactically well-formed but is more than 1/2 ULP // away from the largest floating point number of the given size, -// ParseFloat returns f = ±Inf, err.Error = ErrRange. +// ParseFloat returns f = ±Inf, err.Err = ErrRange. func ParseFloat(s string, bitSize int) (f float64, err error) { if bitSize == 32 { f1, err1 := atof32(s) diff --git a/libgo/go/strconv/atoi.go b/libgo/go/strconv/atoi.go index 21c6900..2d0db71 100644 --- a/libgo/go/strconv/atoi.go +++ b/libgo/go/strconv/atoi.go @@ -33,7 +33,8 @@ func rangeError(fn, str string) *NumError { const intSize = 32 << uint(^uint(0)>>63) -const IntSize = intSize // number of bits in int, uint (32 or 64) +// IntSize is the size in bits of an int or uint value. +const IntSize = intSize // Return the first number n such that n*base >= 1<<64. func cutoff64(base int) uint64 { @@ -141,9 +142,9 @@ Error: // // The errors that ParseInt returns have concrete type *NumError // and include err.Num = s. If s is empty or contains invalid -// digits, err.Error = ErrSyntax; if the value corresponding +// digits, err.Err = ErrSyntax; if the value corresponding // to s cannot be represented by a signed integer of the -// given size, err.Error = ErrRange. +// given size, err.Err = ErrRange. func ParseInt(s string, base int, bitSize int) (i int64, err error) { const fnParseInt = "ParseInt" diff --git a/libgo/go/strconv/quote.go b/libgo/go/strconv/quote.go index 8cbef88..7d6cdcf 100644 --- a/libgo/go/strconv/quote.go +++ b/libgo/go/strconv/quote.go @@ -133,7 +133,7 @@ func QuoteRuneToASCII(r rune) string { return quoteWith(string(r), '\'', true) } -// AppendQuoteRune appends a single-quoted Go character literal representing the rune, +// AppendQuoteRuneToASCII appends a single-quoted Go character literal representing the rune, // as generated by QuoteRuneToASCII, to dst and returns the extended buffer. func AppendQuoteRuneToASCII(dst []byte, r rune) []byte { return append(dst, QuoteRuneToASCII(r)...) diff --git a/libgo/go/strconv/strconv_test.go b/libgo/go/strconv/strconv_test.go index 381874b..207e00e 100644 --- a/libgo/go/strconv/strconv_test.go +++ b/libgo/go/strconv/strconv_test.go @@ -46,6 +46,9 @@ var ( ) func TestCountMallocs(t *testing.T) { + if testing.Short() { + t.Skip("skipping malloc count in short mode") + } if runtime.GOMAXPROCS(0) > 1 { t.Skip("skipping; GOMAXPROCS>1") } -- cgit v1.1