Author: kclark
Date: Tue Jun 17 18:06:29 2008
New Revision: 668947
URL: http://svn.apache.org/viewvc?rev=668947&view=rev
Log:
Stop using for _ in _ in Thrift::Protocol
Modified:
incubator/thrift/trunk/lib/rb/lib/thrift/protocol.rb
Modified: incubator/thrift/trunk/lib/rb/lib/thrift/protocol.rb
URL:
http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/rb/lib/thrift/protocol.rb?rev=668947&r1=668946&r2=668947&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/rb/lib/thrift/protocol.rb (original)
+++ incubator/thrift/trunk/lib/rb/lib/thrift/protocol.rb Tue Jun 17 18:06:29
2008
@@ -233,20 +233,20 @@
read_struct_end
elsif type === Types::MAP
ktype, vtype, size = read_map_begin
- for i in 1..size
+ size.times do
skip(ktype)
skip(vtype)
end
read_map_end
elsif type === Types::SET
etype, size = read_set_begin
- for i in 1..size
+ size.times do
skip(etype)
end
read_set_end
elsif type === Types::LIST
etype, size = read_list_begin
- for i in 1..size
+ size.times do
skip(etype)
end
read_list_end