From 58434e698865101096e28fb2ea98282133d55e2c Mon Sep 17 00:00:00 2001 From: David Reiss Date: Tue, 7 Oct 2008 21:08:10 +0000 Subject: [PATCH] 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 --- lib/py/src/protocol/fastbinary.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.17.1