Ruby TBinaryProtocol fix
authorMark Slee <mcslee@apache.org>
Sat, 23 Jun 2007 00:08:13 +0000 (00:08 +0000)
committerMark Slee <mcslee@apache.org>
Sat, 23 Jun 2007 00:08:13 +0000 (00:08 +0000)
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

index c8fa57d..a152bf2 100644 (file)
@@ -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