@@ -14,7 +14,7 @@ import (
1414// FuzzIntToUint32 validates IntToUint32 with random inputs.
1515func FuzzIntToUint32 (f * testing.F ) {
1616 f .Add (0 )
17- f .Add (int ( math .MaxUint32 ) )
17+ f .Add (math .MaxUint32 )
1818 f .Add (- 1 )
1919 f .Fuzz (func (t * testing.T , v int ) {
2020 r , err := safe .IntToUint32 (v )
@@ -63,7 +63,7 @@ func FuzzInt64ToUint64(f *testing.F) {
6363func FuzzIntToUint64 (f * testing.F ) {
6464 f .Add (0 )
6565 f .Add (- 1 )
66- f .Add (int ( math .MaxInt ) )
66+ f .Add (math .MaxInt )
6767 f .Fuzz (func (t * testing.T , v int ) {
6868 r , err := safe .IntToUint64 (v )
6969 if v < 0 {
@@ -110,8 +110,8 @@ func FuzzInt64ToInt32(f *testing.F) {
110110// FuzzIntToInt32 validates IntToInt32 with random inputs.
111111func FuzzIntToInt32 (f * testing.F ) {
112112 f .Add (0 )
113- f .Add (int ( math .MaxInt32 ) )
114- f .Add (int ( math .MinInt32 ) )
113+ f .Add (math .MaxInt32 )
114+ f .Add (math .MinInt32 )
115115 f .Fuzz (func (t * testing.T , v int ) {
116116 r , err := safe .IntToInt32 (v )
117117 if v < math .MinInt32 || v > math .MaxInt32 {
@@ -173,7 +173,7 @@ func FuzzBigWordToUint32(f *testing.F) {
173173// FuzzIntToUint16 validates IntToUint16 with random inputs.
174174func FuzzIntToUint16 (f * testing.F ) {
175175 f .Add (0 )
176- f .Add (int ( math .MaxUint16 ) )
176+ f .Add (math .MaxUint16 )
177177 f .Add (- 1 )
178178 f .Fuzz (func (t * testing.T , v int ) {
179179 r , err := safe .IntToUint16 (v )
@@ -189,8 +189,8 @@ func FuzzIntToUint16(f *testing.F) {
189189// FuzzIntToInt16 validates IntToInt16 with random inputs.
190190func FuzzIntToInt16 (f * testing.F ) {
191191 f .Add (0 )
192- f .Add (int ( safe .MinInt16 ) )
193- f .Add (int ( safe .MaxInt16 ) )
192+ f .Add (safe .MinInt16 )
193+ f .Add (safe .MaxInt16 )
194194 f .Fuzz (func (t * testing.T , v int ) {
195195 r , err := safe .IntToInt16 (v )
196196 if v < safe .MinInt16 || v > safe .MaxInt16 {
0 commit comments