THRIFT-348. cpp: Fix readBool for vectors of bools (again)
authorDavid Reiss <dreiss@apache.org>
Wed, 25 Feb 2009 00:59:55 +0000 (00:59 +0000)
committerDavid Reiss <dreiss@apache.org>
Wed, 25 Feb 2009 00:59:55 +0000 (00:59 +0000)
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

lib/cpp/src/protocol/TProtocol.h

index 5dcea2b..4507d91 100644 (file)
@@ -217,6 +217,7 @@ class TProtocol {
     bool value;
     uint32_t rv = readBool(value);
     ref = value;
+    return rv;
   }
 
   /**