THRIFT-5569: Fix size check in TCompactProtocol.ReadListBegin

Client: go

This was a copy-paste error in the original implementation in
6583f4e52345c3b05a76f0b188836599628356e8.
diff --git a/lib/go/thrift/compact_protocol.go b/lib/go/thrift/compact_protocol.go
index ff3999c..dc86fe6 100644
--- a/lib/go/thrift/compact_protocol.go
+++ b/lib/go/thrift/compact_protocol.go
@@ -516,7 +516,7 @@
 		}
 		size = int(size2)
 	}
-	err = checkSizeForProtocol(size32, p.cfg)
+	err = checkSizeForProtocol(int32(size), p.cfg)
 	if err != nil {
 		return
 	}