You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by ro...@apache.org on 2013/03/22 22:13:16 UTC

[2/2] git commit: THRIFT-1863 cocoa: [TBinaryProtocol readMessageBeginReturnName:type:sequenceID] returns incorrect message type Patch: Kevin Li

THRIFT-1863 cocoa: [TBinaryProtocol readMessageBeginReturnName:type:sequenceID] returns incorrect message type
Patch: Kevin Li


Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/ff951bd5
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/ff951bd5
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/ff951bd5

Branch: refs/heads/master
Commit: ff951bd5675a1ba72b39abeff8aafb770d3c43cf
Parents: 5505465
Author: Roger Meier <ro...@apache.org>
Authored: Fri Mar 22 22:12:19 2013 +0100
Committer: Roger Meier <ro...@apache.org>
Committed: Fri Mar 22 22:12:19 2013 +0100

----------------------------------------------------------------------
 lib/cocoa/src/protocol/TBinaryProtocol.m |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/thrift/blob/ff951bd5/lib/cocoa/src/protocol/TBinaryProtocol.m
----------------------------------------------------------------------
diff --git a/lib/cocoa/src/protocol/TBinaryProtocol.m b/lib/cocoa/src/protocol/TBinaryProtocol.m
index f269aaa..bee616e 100644
--- a/lib/cocoa/src/protocol/TBinaryProtocol.m
+++ b/lib/cocoa/src/protocol/TBinaryProtocol.m
@@ -118,7 +118,7 @@ static TBinaryProtocolFactory * gSharedFactory = nil;
                                  reason: @"Bad version in readMessageBegin"];
     }
     if (type != NULL) {
-      *type = version & 0x00FF;
+      *type = size & 0x00FF;
     }
     NSString * messageName = [self readString];
     if (name != NULL) {