1
0
mirror of https://github.com/golang/go synced 2024-11-18 14:04:45 -07:00
go/src/strconv
smasher164 0a364330a2 strconv: remove redundant conversions to int
IntSize is an untyped constant that does not need explicit conversion.
Annotating IntSize as an int and running github.com/mdempsky/unconvert
reveals these two cases.

Fixes #38682.

Change-Id: I014646b7457ddcde32474810153229dcf0c269c6
Reviewed-on: https://go-review.googlesource.com/c/go/+/230306
Run-TryBot: Akhil Indurti <aindurti@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2020-04-27 21:46:18 +00:00
..
testdata
atob_test.go
atob.go
atof_test.go
atof.go
atoi_test.go
atoi.go strconv: remove redundant conversions to int 2020-04-27 21:46:18 +00:00
decimal_test.go
decimal.go
doc.go
example_test.go
export_test.go
extfloat.go strconv: add comment re extFloat errorscale 2020-04-11 23:08:34 +00:00
fp_test.go
ftoa_test.go
ftoa.go
internal_test.go
isprint.go
itoa_test.go
itoa.go
makeisprint.go
quote_test.go all: avoid string(i) where i has type int 2020-02-26 04:38:19 +00:00
quote.go strconv: stop describing Unicode graphic characters as non-ASCII 2020-01-26 20:38:34 +00:00
strconv_test.go