* 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
This commit is contained in:
akr 2007-09-30 02:33:18 +00:00
parent 11f6502652
commit d1c7f6c9cd
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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);