Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Use read instead of readchar #1

Merged
merged 1 commit into from

2 participants

@josh

IO#readchar returns an Integer on 1.8

@josh josh Use read instead of readchar
IO#readchar returns an Int on 1.8
78f8f45
@rkh rkh merged commit 46e36be into rkh:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 15, 2011
  1. @josh

    Use read instead of readchar

    josh authored
    IO#readchar returns an Int on 1.8
This page is out of date. Refresh to see the latest.
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
Something went wrong with that request. Please try again.