From: David Reiss Date: Wed, 25 Feb 2009 00:59:55 +0000 (+0000) Subject: THRIFT-348. cpp: Fix readBool for vectors of bools (again) X-Git-Tag: 0.2.0~285 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=57b500610f34d15e7261c6460144ec88f710af85;p=common%2Fthrift.git THRIFT-348. cpp: Fix readBool for vectors of bools (again) This bug only affected the returned number bytes read (which is not currently used), not the actual bool value. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@747635 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/lib/cpp/src/protocol/TProtocol.h b/lib/cpp/src/protocol/TProtocol.h index 5dcea2b7..4507d91b 100644 --- a/lib/cpp/src/protocol/TProtocol.h +++ b/lib/cpp/src/protocol/TProtocol.h @@ -217,6 +217,7 @@ class TProtocol { bool value; uint32_t rv = readBool(value); ref = value; + return rv; } /**