diff options
Diffstat (limited to 'ext/openssl')
-rw-r--r-- | ext/openssl/lib/openssl/buffering.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/openssl/lib/openssl/buffering.rb b/ext/openssl/lib/openssl/buffering.rb index a11fe73357..eb39dabcef 100644 --- a/ext/openssl/lib/openssl/buffering.rb +++ b/ext/openssl/lib/openssl/buffering.rb @@ -252,8 +252,7 @@ module OpenSSL::Buffering # file. def getc - c = read(1) - c ? c[0] : nil + read(1) end ## @@ -261,7 +260,7 @@ module OpenSSL::Buffering def each_byte # :yields: byte while c = getc - yield(c) + yield(c.ord) end end |