]> Cypherpunks repositories - gostls13.git/commit
strconv: remove redundant conversions to int
authorsmasher164 <aindurti@gmail.com>
Mon, 27 Apr 2020 17:23:24 +0000 (13:23 -0400)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 27 Apr 2020 21:46:18 +0000 (21:46 +0000)
commit0a364330a2abba1fede96c7cdd6432f3007866b3
treefea2d20ee8d7f2301ccbffe64518993f62a93932
parent287d1ec96c1271de532c6b1160cd9cbbe717ee34
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>
src/strconv/atoi.go