summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-02 08:07:04 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-02 08:07:04 +0000
commitd589c29331c5b1d6896e6bdb03eed879e34c1c74 (patch)
tree8235c2bc0c876e7f0ffa61d866758cb983fde8aa /io.c
parent931e3b6a67d7e65961ab350f8cef58d7515bcc07 (diff)
merges r29454 from trunk into ruby_1_9_2.
-- * io.c (rb_io_ungetc): always see Bignum. On 32bit valid value may be a Bignum. On 64bit for errors. [ruby-dev:42366] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@30041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/io.c b/io.c
index 935586e959..131bcf46a5 100644
--- a/io.c
+++ b/io.c
@@ -3195,11 +3195,9 @@ rb_io_ungetc(VALUE io, VALUE c)
if (FIXNUM_P(c)) {
c = rb_enc_uint_chr(FIX2UINT(c), io_read_encoding(fptr));
}
-#if SIZEOF_LONG > SIZEOF_INT
else if (TYPE(c) == T_BIGNUM) {
c = rb_enc_uint_chr(NUM2UINT(c), io_read_encoding(fptr));
}
-#endif
else {
SafeStringValue(c);
}