From: Mark Slee Date: Tue, 10 Jul 2007 00:49:04 +0000 (+0000) Subject: Fix SET serialization borked-ness in Thrift X-Git-Tag: 0.2.0~1312 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=8b82fb7a757f54659c88f294a217613a9fea59ca;p=common%2Fthrift.git Fix SET serialization borked-ness in Thrift Summary: Extra return floating in the code Reviewed By: boz Test Plan: Rebuild and deploy feed git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665160 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/lib/cpp/src/protocol/TBinaryProtocol.cpp b/lib/cpp/src/protocol/TBinaryProtocol.cpp index 621e5dcc..69458513 100644 --- a/lib/cpp/src/protocol/TBinaryProtocol.cpp +++ b/lib/cpp/src/protocol/TBinaryProtocol.cpp @@ -130,7 +130,6 @@ uint32_t TBinaryProtocol::writeListEnd() { uint32_t TBinaryProtocol::writeSetBegin(const TType elemType, const uint32_t size) { uint32_t wsize = 0; - return wsize += writeByte((int8_t)elemType); wsize += writeI32((int32_t)size); return wsize;