Skip to content

Commit

Permalink
Fixing for ruby 1.8.6 which has a strange idea of what you can do wit…
Browse files Browse the repository at this point in the history
…h upto
  • Loading branch information
hackerdude committed Jul 22, 2010
1 parent 6b11a9c commit eee19cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mediainfo-ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def introspect
if ! kind_constant.nil?
if ThingsWithMultipleStreams.include?(topic)
streams = self.send("#{topic.to_s}_streams".to_sym)
results[topic] = 0.upto(streams-1).collect{|ix| introspect_topic(kind_constant, topic_parameters, ix) }
results[topic] = (0..(streams-1)).collect{|ix| introspect_topic(kind_constant, topic_parameters, ix) }
else
results[topic] = introspect_topic(kind_constant, topic_parameters)
end
Expand Down

0 comments on commit eee19cf

Please sign in to comment.