* 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:
parent
11f6502652
commit
d1c7f6c9cd
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user