diff --git a/common/types_test.go b/common/types_test.go index c223e50533..51cf8220ca 100644 --- a/common/types_test.go +++ b/common/types_test.go @@ -642,7 +642,7 @@ func TestDecimalUnmarshalJSON(t *testing.T) { { name: "valid number MaxInt64 string", d: &d, - args: args{[]byte(fmt.Sprintf(`"%d"`, math.MaxInt64))}, + args: args{[]byte(fmt.Sprintf(`"%d"`, int64(math.MaxInt64)))}, wantErr: false, expectedVal: math.MaxInt64, },