Author: dreiss
Date: Tue Oct 7 14:08:10 2008
New Revision: 702640
URL: http://svn.apache.org/viewvc?rev=702640&view=rev
Log:
THRIFT-108. python: Fix call to PyDict_Next in fastbinary.c
The position parameter is supposed to be a Py_ssize_t*, not an int*.
This was probably just an oversight in the original patch, and it
was preventing maps from serializing properly on x86-64.
Modified:
incubator/thrift/trunk/lib/py/src/protocol/fastbinary.c
Modified: incubator/thrift/trunk/lib/py/src/protocol/fastbinary.c
URL:
http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/py/src/protocol/fastbinary.c?rev=702640&r1=702639&r2=702640&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/py/src/protocol/fastbinary.c (original)
+++ incubator/thrift/trunk/lib/py/src/protocol/fastbinary.c Tue Oct 7 14:08:10
2008
@@ -419,7 +419,7 @@
case T_MAP: {
PyObject *k, *v;
- int pos = 0;
+ Py_ssize_t pos = 0;
Py_ssize_t len;
MapTypeArgs parsedargs;