From 0e1100c9215d1bc58ca6c01fae80439764b50e58 Mon Sep 17 00:00:00 2001 From: Mark Slee Date: Sat, 23 Jun 2007 00:08:13 +0000 Subject: [PATCH] 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 --- lib/rb/lib/thrift/protocol/tbinaryprotocol.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.17.1