From 8afc8aef2ab1b5945a6a64123095a39be98bd22c Mon Sep 17 00:00:00 2001 From: Brian McQueen Date: Wed, 26 Jan 2022 14:01:54 -0800 Subject: [PATCH] fixed compile problem in logical_type_test. Changed MaxInt to MaxInt32 --- logical_type_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logical_type_test.go b/logical_type_test.go index 857f050..7108af0 100644 --- a/logical_type_test.go +++ b/logical_type_test.go @@ -174,7 +174,7 @@ func TestDecimalFixedLogicalTypeEncode(t *testing.T) { testBinaryCodecPass(t, schemaPrecision1, big.NewRat(163, 10), []byte("\x00\x00\x00\xa3")) testBinaryCodecPass(t, schemaPrecision1, big.NewRat(-130, 4), []byte("\xff\xff\xfe\xbb")) testBinaryCodecPass(t, schemaPrecision1, big.NewRat(25, 2), []byte("\x00\x00\x00\x7d")) - testBinaryEncodeFail(t, schemaPrecision1, big.NewRat(math.MaxInt, -1), "datum size ought to equal schema size") + testBinaryEncodeFail(t, schemaPrecision1, big.NewRat(math.MaxInt32, -1), "datum size ought to equal schema size") } func TestDecimalBytesLogicalTypeInRecordEncode(t *testing.T) {