diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-09-30 02:33:18 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-09-30 02:33:18 +0000 |
commit | d1c7f6c9cd1b226be6754157b70b665aa32e079e (patch) | |
tree | 5cf4b595cde02b17bf1cf00dab9f0859f2f72771 | |
parent | 11f6502652a1c618bbeb050a7f2f9ba1faa2a58e (diff) | |
download | ruby-d1c7f6c9cd1b226be6754157b70b665aa32e079e.tar.gz |
* numeric.c: use #ifdef for test LONG_LONG_VALUE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | numeric.c | 4 |
2 files changed, 6 insertions, 2 deletions
@@ -1,3 +1,7 @@ +Sun Sep 30 11:32:34 2007 Tanaka Akira <akr@fsij.org> + + * numeric.c: use #ifdef for test LONG_LONG_VALUE. + Sun Sep 30 04:30:55 2007 Tanaka Akira <akr@fsij.org> * bignum.c: use SIZEOF_LONG instead of SIZEOF_ULONG which is not @@ -1523,7 +1523,7 @@ check_int(SIGNED_VALUE num) else { return; } -#if LONG_LONG_VALUE +#ifdef LONG_LONG_VALUE rb_raise(rb_eRangeError, "integer %lld too %s to convert to `int'", num, s); #else rb_raise(rb_eRangeError, "integer %ld too %s to convert to `int'", num, s); @@ -1534,7 +1534,7 @@ static void check_uint(VALUE num) { if (num > UINT_MAX) { -#if LONG_LONG_VALUE +#ifdef LONG_LONG_VALUE rb_raise(rb_eRangeError, "integer %llu too big to convert to `unsigned int'", num); #else rb_raise(rb_eRangeError, "integer %lu too big to convert to `unsigned int'", num); |