summaryrefslogtreecommitdiff
path: root/complex.c
diff options
context:
space:
mode:
Diffstat (limited to 'complex.c')
-rw-r--r--complex.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/complex.c b/complex.c
index 2221c9e..40fec0c 100644
--- a/complex.c
+++ b/complex.c
@@ -33,14 +33,14 @@ static VALUE nucomp_arg(VALUE self);
static ID id_abs, id_arg,
id_denominator, id_fdiv, id_numerator, id_quo,
- id_real_p, id_to_f,
- id_i_real, id_i_imag,
+ id_real_p, id_i_real, id_i_imag,
id_finite_p, id_infinite_p, id_rationalize,
id_PI;
#define id_to_i idTo_i
#define id_to_r idTo_r
#define id_negate idUMinus
#define id_expt idPow
+#define id_to_f idTo_f
#define f_boolcast(x) ((x) ? Qtrue : Qfalse)
@@ -2125,7 +2125,6 @@ Init_Complex(void)
id_numerator = rb_intern("numerator");
id_quo = rb_intern("quo");
id_real_p = rb_intern("real?");
- id_to_f = rb_intern("to_f");
id_i_real = rb_intern("@real");
id_i_imag = rb_intern("@image"); /* @image, not @imag */
id_finite_p = rb_intern("finite?");