]> Cypherpunks repositories - gostls13.git/commit
strconv: avoid truncation of output in parse int tests
authorMartin Möhrmann <moehrmann@google.com>
Sat, 12 Aug 2017 20:15:43 +0000 (22:15 +0200)
committerMartin Möhrmann <moehrmann@google.com>
Sun, 13 Aug 2017 10:08:42 +0000 (10:08 +0000)
commit09ed0f68059552abeeae78867ffc2956205df22a
treec6d4ff1e46c6bcfbc5b63cc9884861914dc5d9ac
parentfee7f2ab1652d510817a64459ffc0b458decc9ce
strconv: avoid truncation of output in parse int tests

If needed cast the test table values to a higher bit size
integer type instead of casting the result values of the
tested function to a lower bit size integer type.

Change-Id: Iaa79742b2b1d90c7c7eac324f54032ebea0b1b41
Reviewed-on: https://go-review.googlesource.com/55137
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
src/strconv/atoi_test.go