commit | bc444b034e79b521b0512198a1feaa37da6d3ee7 | [log] [tgz] |
---|---|---|
author | David Reiss <dreiss@apache.org> | Thu Feb 14 20:20:08 2008 +0000 |
committer | David Reiss <dreiss@apache.org> | Thu Feb 14 20:20:08 2008 +0000 |
tree | fd46151d59d5b294077ee7c353ec7750a7442f31 | |
parent | bbf8062e4f37bde9e698e080b9f2017dd93bbfc6 [diff] |
Thrift: Fix a bug in the skip function in Python's fastbinary.c Reviewed By: mcslee Other Notes: Submitted by Ben Maurer (the original author). git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665479 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/py/src/protocol/fastbinary.c b/lib/py/src/protocol/fastbinary.c index 3b7b5c0..5625f4b 100644 --- a/lib/py/src/protocol/fastbinary.c +++ b/lib/py/src/protocol/fastbinary.c
@@ -806,7 +806,7 @@ } - return false; + return true; #undef SKIPBYTES } @@ -851,6 +851,8 @@ if (item_spec == Py_None) { if (!skip(input, type)) { return false; + } else { + continue; } }