rb: Make MemoryTransport's inspect_buffer method work in Ruby 1.9
authorBryan Duxbury <bryanduxbury@apache.org>
Mon, 9 Aug 2010 15:25:34 +0000 (15:25 +0000)
committerBryan Duxbury <bryanduxbury@apache.org>
Mon, 9 Aug 2010 15:25:34 +0000 (15:25 +0000)
Patch: Rajesh Malepati

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@983680 13f79535-47bb-0310-9956-ffa450edef68

lib/rb/lib/thrift/transport/memory_buffer_transport.rb

index b4a80f8..3169b2b 100644 (file)
@@ -88,9 +88,9 @@ module Thrift
           out << ">"
         end
       
-        out << @buf[idx].to_s(16)
+        out << @buf[idx].ord.to_s(16)
       end
       out.join(" ")
     end
   end
-end
\ No newline at end of file
+end