Skip to content

Commit

Permalink
fix #getbyte spec
Browse files Browse the repository at this point in the history
  • Loading branch information
chuckremes committed Jan 30, 2015
1 parent e22a4d4 commit 9009136
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kernel/common/io.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1647,7 +1647,7 @@ def read_to_separator_with_limit
if buffer.size == 0
consumed_bytes = 0
starting_position = @io.pos
buffer = @io.read(IO.pagesize)
buffer = @io.read(FileDescriptor.pagesize)
end


Expand Down Expand Up @@ -2002,8 +2002,8 @@ def fsync

def getbyte
ensure_open

return read(1).ord
byte = read(1)
return(byte ? byte.ord : nil)
end

##
Expand Down

0 comments on commit 9009136

Please sign in to comment.