From: David Reiss Date: Tue, 7 Oct 2008 21:08:10 +0000 (+0000) Subject: THRIFT-108. python: Fix call to PyDict_Next in fastbinary.c X-Git-Tag: 0.2.0~437 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=58434e698865101096e28fb2ea98282133d55e2c;p=common%2Fthrift.git 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. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@702640 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/lib/py/src/protocol/fastbinary.c b/lib/py/src/protocol/fastbinary.c index 5625f4b4..0945ca76 100644 --- a/lib/py/src/protocol/fastbinary.c +++ b/lib/py/src/protocol/fastbinary.c @@ -419,7 +419,7 @@ output_val(PyObject* output, PyObject* value, TType type, PyObject* typeargs) { case T_MAP: { PyObject *k, *v; - int pos = 0; + Py_ssize_t pos = 0; Py_ssize_t len; MapTypeArgs parsedargs;