From: Mark Slee Date: Sat, 23 Jun 2007 00:08:13 +0000 (+0000) Subject: Ruby TBinaryProtocol fix X-Git-Tag: 0.2.0~1331 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=0e1100c9215d1bc58ca6c01fae80439764b50e58;p=common%2Fthrift.git Ruby TBinaryProtocol fix Summary: VERSION_1 | type, not &, wrong binary operator Reviewed By: binary Test Plan: TestClient.rb git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665141 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/lib/rb/lib/thrift/protocol/tbinaryprotocol.rb b/lib/rb/lib/thrift/protocol/tbinaryprotocol.rb index c8fa57d3..a152bf27 100644 --- a/lib/rb/lib/thrift/protocol/tbinaryprotocol.rb +++ b/lib/rb/lib/thrift/protocol/tbinaryprotocol.rb @@ -20,7 +20,7 @@ class TBinaryProtocol < TProtocol end def writeMessageBegin(name, type, seqid) - writeI32(VERSION_1 & type) + writeI32(VERSION_1 | type) writeString(name) writeI32(seqid) end