Skip to content

Commit

Permalink
Use read instead of readchar
Browse files Browse the repository at this point in the history
IO#readchar returns an Int on 1.8
  • Loading branch information
josh committed May 15, 2011
1 parent 6e13238 commit 78f8f45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/otnetstring.rb
Expand Up @@ -6,7 +6,7 @@ def self.parse(io)
length, byte = "", "0"
while byte =~ /\d/
length << byte
byte = io.readchar
byte = io.read(1)
end
length = length.to_i
case byte
Expand Down

0 comments on commit 78f8f45

Please sign in to comment.