THRIFT-1863 cocoa: [TBinaryProtocol readMessageBeginReturnName:type:sequenceID] retur...
authorRoger Meier <roger@apache.org>
Fri, 22 Mar 2013 21:12:19 +0000 (22:12 +0100)
committerRoger Meier <roger@apache.org>
Fri, 22 Mar 2013 21:12:19 +0000 (22:12 +0100)
Patch: Kevin Li

lib/cocoa/src/protocol/TBinaryProtocol.m

index f269aaa..bee616e 100644 (file)
@@ -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) {