summaryrefslogtreecommitdiff
path: root/rational.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-07-15 22:58:47 (GMT)
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-07-15 22:59:30 (GMT)
commit34019a22eb41206e3d5d1ac29b3874275aa7f71c (patch)
treecb1dbc36e1904f0a5a5d526c234f5483af925214 /rational.c
parent325d546d627f3cfb50c0371775f671cd88521c49 (diff)
Expanded f_denominator
Diffstat (limited to 'rational.c')
-rw-r--r--rational.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/rational.c b/rational.c
index e137ac2..7607628 100644
--- a/rational.c
+++ b/rational.c
@@ -2080,8 +2080,8 @@ float_numerator(VALUE self)
*
* See also Float#numerator.
*/
-static VALUE
-float_denominator(VALUE self)
+VALUE
+rb_float_denominator(VALUE self)
{
double d = RFLOAT_VALUE(self);
VALUE r;
@@ -2778,7 +2778,7 @@ Init_Rational(void)
rb_define_method(rb_cInteger, "denominator", integer_denominator, 0);
rb_define_method(rb_cFloat, "numerator", float_numerator, 0);
- rb_define_method(rb_cFloat, "denominator", float_denominator, 0);
+ rb_define_method(rb_cFloat, "denominator", rb_float_denominator, 0);
rb_define_method(rb_cNilClass, "to_r", nilclass_to_r, 0);
rb_define_method(rb_cNilClass, "rationalize", nilclass_rationalize, -1);