diff options
Diffstat (limited to 'rational.c')
-rw-r--r-- | rational.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rational.c b/rational.c index 82cb0298a5..a81ffe1611 100644 --- a/rational.c +++ b/rational.c @@ -1130,7 +1130,7 @@ nurat_to_f(VALUE self) e = (int)(ne - de); if ((e > DBL_MAX_EXP) || (e < DBL_MIN_EXP)) { - rb_warn("%s out of Float range", rb_obj_classname(self)); + rb_warning("%s out of Float range", rb_obj_classname(self)); return rb_float_new(e > 0 ? HUGE_VAL : 0.0); } @@ -1140,7 +1140,7 @@ nurat_to_f(VALUE self) f = ldexp(f, e); if (isinf(f) || isnan(f)) - rb_warn("%s out of Float range", rb_obj_classname(self)); + rb_warning("%s out of Float range", rb_obj_classname(self)); return rb_float_new(f); } |