Skip to content
Browse files

Use read instead of readchar

IO#readchar returns an Int on 1.8
  • Loading branch information...
1 parent 6e13238 commit 78f8f45901dc8069c505656e83c42a11565fbc6f @josh josh committed May 15, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/otnetstring.rb
View
2 lib/otnetstring.rb
@@ -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

0 comments on commit 78f8f45

Please sign in to comment.
Something went wrong with that request. Please try again.