Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use read instead of readchar

IO#readchar returns an Int on 1.8
  • Loading branch information...
commit 4d9e3aa1b0c6dba241c78c45d9d2eff3fe5a472d 1 parent 6e13238
@josh josh authored committed
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
Please sign in to comment.
Something went wrong with that request. Please try again.