Code Review
/
common
/
thrift.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
8684554
)
THRIFT-108. python: Fix call to PyDict_Next in fastbinary.c
author
David Reiss
<dreiss@apache.org>
Tue, 7 Oct 2008 21:08:10 +0000
(21:08 +0000)
committer
David Reiss
<dreiss@apache.org>
Tue, 7 Oct 2008 21:08:10 +0000
(21:08 +0000)
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
patch
|
blob
|
history
diff --git
a/lib/py/src/protocol/fastbinary.c
b/lib/py/src/protocol/fastbinary.c
index
5625f4b
..
0945ca7
100644
(file)
--- 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;
-
in
t pos = 0;
+
Py_ssize_
t pos = 0;
Py_ssize_t len;
MapTypeArgs parsedargs;