> LP64 なマシンで test-all が動かなくなっています。

別の理由で、test-all が手元でできないですが、こんな感じでどうでしょう。


Index: complex.c
===================================================================
--- complex.c	(revision 15817)
+++ complex.c	(working copy)
@@ -70,12 +70,12 @@
 {
    VALUE _r;
    if (FIXNUM_P(y)) {
-     if (FIX2INT(y) == 0)
+     if (FIX2LONG(y) == 0)
        _r = x;
      else
        _r = rb_funcall(x, '+', 1, y);
    } else if (FIXNUM_P(x)) {
-     if (FIX2INT(x) == 0)
+     if (FIX2LONG(x) == 0)
        _r = y;
      else
        _r = rb_funcall(x, '+', 1, y);
@@ -85,10 +85,10 @@
 }
 
 inline static VALUE
-f_div(x, y)
+f_div(VALUE x, VALUE y)
 {
   VALUE _r;
-  if (FIXNUM_P(y) && FIX2INT(y) == 1)
+  if (FIXNUM_P(y) && FIX2LONG(y) == 1)
     _r = x;
    else
      _r = rb_funcall(x, '/', 1, y);
@@ -100,7 +100,7 @@
 {
    VALUE _r;
   if (FIXNUM_P(x) && FIXNUM_P(y))
-    _r = f_boolcast(FIX2INT(x) > FIX2INT(y));
+    _r = f_boolcast(FIX2LONG(x) > FIX2LONG(y));
   else
     _r = rb_funcall(x, '>', 1, y);
   return _r;
@@ -111,7 +111,7 @@
 {
    VALUE _r;
   if (FIXNUM_P(x) && FIXNUM_P(y))
-    _r = f_boolcast(FIX2INT(x) < FIX2INT(y));
+    _r = f_boolcast(FIX2LONG(x) < FIX2LONG(y));
   else
     _r = rb_funcall(x, '<', 1, y);
   return _r;
@@ -124,7 +124,7 @@
 {
    VALUE _r;
    if (FIXNUM_P(y)) {
-     int _iy = FIX2INT(y);
+     long _iy = FIX2LONG(y);
      if (_iy == 0) {
        if (TYPE(x) == T_FLOAT)
 	 _r = rb_float_new(0.0);
@@ -135,7 +135,7 @@
      else
        _r = rb_funcall(x, '*', 1, y);
    } else if (FIXNUM_P(x)) {
-     int _ix = FIX2INT(x);
+     long _ix = FIX2LONG(x);
      if (_ix == 0) {
        if (TYPE(y) == T_FLOAT)
 	 _r = rb_float_new(0.0);
@@ -155,7 +155,7 @@
 {
    VALUE _r;
    if (FIXNUM_P(y)) {
-     if (FIX2INT(y) == 0)
+     if (FIX2LONG(y) == 0)
        _r = x;
      else
        _r = rb_funcall(x, '-', 1, y);
@@ -189,7 +189,7 @@
 {
    VALUE _r;
    if (FIXNUM_P(x) && FIXNUM_P(y)) {
-     int c = FIX2INT(x) - FIX2INT(y);
+     long c = FIX2LONG(x) - FIX2LONG(y);
      if (c > 0)
        c = 1;
      else if (c < 0)
@@ -208,7 +208,7 @@
 {
    VALUE _r;
    if (FIXNUM_P(x) && FIXNUM_P(y))
-     _r = f_boolcast(FIX2INT(x) == FIX2INT(y));
+     _r = f_boolcast(FIX2LONG(x) == FIX2LONG(y));
    else
      _r = rb_funcall(x, id_equal_p, 1, y);
    return _r;
@@ -223,7 +223,7 @@
 {
    VALUE _r;
   if (FIXNUM_P(x))
-    _r = f_boolcast(FIX2INT(x) < 0);
+    _r = f_boolcast(FIX2LONG(x) < 0);
   else
     _r = rb_funcall(x, '<', 1, ZERO);
   return _r;
@@ -234,7 +234,7 @@
 {
    VALUE _r;
    if (FIXNUM_P(x))
-     _r = f_boolcast(FIX2INT(x) == 0);
+     _r = f_boolcast(FIX2LONG(x) == 0);
    else
      _r = rb_funcall(x, id_equal_p, 1, ZERO);
    return _r;
@@ -245,7 +245,7 @@
 {
    VALUE _r;
    if (FIXNUM_P(x))
-     _r = f_boolcast(FIX2INT(x) == 1);
+     _r = f_boolcast(FIX2LONG(x) == 1);
    else
      _r = rb_funcall(x, id_equal_p, 1, ONE);
    return _r;
Index: rational.c
===================================================================
--- rational.c	(revision 15818)
+++ rational.c	(working copy)
@@ -53,12 +53,12 @@
 {
    VALUE _r;
    if (FIXNUM_P(y)) {
-     if (FIX2INT(y) == 0)
+     if (FIX2LONG(y) == 0)
        _r = x;
      else
        _r = rb_funcall(x, '+', 1, y);
    } else if (FIXNUM_P(x)) {
-     if (FIX2INT(x) == 0)
+     if (FIX2LONG(x) == 0)
        _r = y;
      else
        _r = rb_funcall(x, '+', 1, y);
@@ -68,10 +68,10 @@
 }
 
 inline static VALUE
-f_div(x, y)
+f_div(VALUE x, VALUE y)
 {
   VALUE _r;
-  if (FIXNUM_P(y) && FIX2INT(y) == 1)
+  if (FIXNUM_P(y) && FIX2LONG(y) == 1)
     _r = x;
    else
      _r = rb_funcall(x, '/', 1, y);
@@ -83,7 +83,7 @@
 {
    VALUE _r;
   if (FIXNUM_P(x) && FIXNUM_P(y))
-    _r = f_boolcast(FIX2INT(x) > FIX2INT(y));
+    _r = f_boolcast(FIX2LONG(x) > FIX2LONG(y));
   else
     _r = rb_funcall(x, '>', 1, y);
   return _r;
@@ -94,7 +94,7 @@
 {
    VALUE _r;
   if (FIXNUM_P(x) && FIXNUM_P(y))
-    _r = f_boolcast(FIX2INT(x) < FIX2INT(y));
+    _r = f_boolcast(FIX2LONG(x) < FIX2LONG(y));
   else
     _r = rb_funcall(x, '<', 1, y);
   return _r;
@@ -107,7 +107,7 @@
 {
    VALUE _r;
    if (FIXNUM_P(y)) {
-     int _iy = FIX2INT(y);
+     long _iy = FIX2LONG(y);
      if (_iy == 0) {
        if (TYPE(x) == T_FLOAT)
 	 _r = rb_float_new(0.0);
@@ -118,7 +118,7 @@
      else
        _r = rb_funcall(x, '*', 1, y);
    } else if (FIXNUM_P(x)) {
-     int _ix = FIX2INT(x);
+     long _ix = FIX2LONG(x);
      if (_ix == 0) {
        if (TYPE(y) == T_FLOAT)
 	 _r = rb_float_new(0.0);
@@ -138,7 +138,7 @@
 {
    VALUE _r;
    if (FIXNUM_P(y)) {
-     if (FIX2INT(y) == 0)
+     if (FIX2LONG(y) == 0)
        _r = x;
      else
        _r = rb_funcall(x, '-', 1, y);
@@ -162,7 +162,7 @@
 {
    VALUE _r;
    if (FIXNUM_P(x) && FIXNUM_P(y)) {
-     int c = FIX2INT(x) - FIX2INT(y);
+     long c = FIX2LONG(x) - FIX2LONG(y);
      if (c > 0)
        c = 1;
      else if (c < 0)
@@ -180,7 +180,7 @@
 {
    VALUE _r;
    if (FIXNUM_P(x) && FIXNUM_P(y))
-     _r = f_boolcast(FIX2INT(x) == FIX2INT(y));
+     _r = f_boolcast(FIX2LONG(x) == FIX2LONG(y));
    else
      _r = rb_funcall(x, id_equal_p, 1, y);
    return _r;
@@ -194,7 +194,7 @@
 {
    VALUE _r;
   if (FIXNUM_P(x))
-    _r = f_boolcast(FIX2INT(x) < 0);
+    _r = f_boolcast(FIX2LONG(x) < 0);
   else
     _r = rb_funcall(x, '<', 1, ZERO);
   return _r;
@@ -205,7 +205,7 @@
 {
    VALUE _r;
    if (FIXNUM_P(x))
-     _r = f_boolcast(FIX2INT(x) == 0);
+     _r = f_boolcast(FIX2LONG(x) == 0);
    else
      _r = rb_funcall(x, id_equal_p, 1, ZERO);
    return _r;
@@ -216,7 +216,7 @@
 {
    VALUE _r;
    if (FIXNUM_P(x))
-     _r = f_boolcast(FIX2INT(x) == 1);
+     _r = f_boolcast(FIX2LONG(x) == 1);
    else
      _r = rb_funcall(x, id_equal_p, 1, ONE);
    return _r;
@@ -319,7 +319,7 @@
 
   for (;;) {
     if (FIXNUM_P(x)) {
-      if (FIX2INT(x) == 0)
+      if (FIX2LONG(x) == 0)
 	return y;
       if (FIXNUM_P(y))
 	return LONG2NUM(i_gcd(FIX2LONG(x), FIX2LONG(y)));
@@ -897,7 +897,7 @@
     {
       get_dat1(self);
 
-      if (FIXNUM_P(dat->den) && FIX2INT(dat->den) == 1)
+      if (FIXNUM_P(dat->den) && FIX2LONG(dat->den) == 1)
 	return f_cmp(dat->num, other);
       else
 	return f_cmp(self, f_rational_new_bang1(CLASS_OF(self), other));
@@ -912,8 +912,8 @@
 
       if (FIXNUM_P(adat->num) && FIXNUM_P(adat->den) &&
 	  FIXNUM_P(bdat->num) && FIXNUM_P(bdat->den)) {
-	num1 = f_imul(FIX2INT(adat->num), FIX2INT(bdat->den));
-	num2 = f_imul(FIX2INT(bdat->num), FIX2INT(adat->den));
+	num1 = f_imul(FIX2LONG(adat->num), FIX2LONG(bdat->den));
+	num2 = f_imul(FIX2LONG(bdat->num), FIX2LONG(adat->den));
       } else {
 	num1 = f_mul(adat->num, bdat->den);
 	num2 = f_mul(bdat->num, adat->den);
@@ -939,7 +939,7 @@
 
       if (!FIXNUM_P(dat->den))
 	return Qfalse;
-      if (FIX2INT(dat->den) != 1)
+      if (FIX2LONG(dat->den) != 1)
 	return Qfalse;
       if (f_equal_p(dat->num, other))
 	return Qtrue;