Author: cutting
Date: Thu Sep 22 20:49:11 2011
New Revision: 1174381
URL: http://svn.apache.org/viewvc?rev=1174381&view=rev
Log:
AVRO-892. Python: Fix an "integer out of range" error with snappy compression. Contributed
by Michael Cooper.
Modified:
avro/trunk/CHANGES.txt
avro/trunk/lang/py/src/avro/io.py
Modified: avro/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/avro/trunk/CHANGES.txt?rev=1174381&r1=1174380&r2=1174381&view=diff
==============================================================================
--- avro/trunk/CHANGES.txt (original)
+++ avro/trunk/CHANGES.txt Thu Sep 22 20:49:11 2011
@@ -91,6 +91,9 @@ Avro 1.5.4 (12 September 2011)
AVRO-884. Java: Fix a regression in RPC so that one-way messages
fail when the transciever cannot connect. (Tom White via cutting)
+ AVRO-892. Python: Fix an "integer out of range" error with snappy
+ compression. (Michael Cooper via cutting)
+
Avro 1.5.3 (25 August 2011)
IMPROVEMENTS
Modified: avro/trunk/lang/py/src/avro/io.py
URL: http://svn.apache.org/viewvc/avro/trunk/lang/py/src/avro/io.py?rev=1174381&r1=1174380&r2=1174381&view=diff
==============================================================================
--- avro/trunk/lang/py/src/avro/io.py (original)
+++ avro/trunk/lang/py/src/avro/io.py Thu Sep 22 20:49:11 2011
@@ -360,7 +360,7 @@ class BinaryEncoder(object):
"""
A 4-byte, big-endian CRC32 checksum
"""
- self.write(STRUCT_CRC32.pack(crc32(bytes)));
+ self.write(STRUCT_CRC32.pack(crc32(bytes) & 0xffffffff));
#
# DatumReader/Writer
|