Permalink
Browse files

Use read instead of readchar

IO#readchar returns an Int on 1.8
  • Loading branch information...
1 parent 6e13238 commit 4d9e3aa1b0c6dba241c78c45d9d2eff3fe5a472d @josh josh committed with 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 4d9e3aa

Please sign in to comment.