Skip to content

Commit 75c0dcc

Browse files
committed
to_f working, optimizing TODO
1 parent 32eb6ed commit 75c0dcc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ext/symengine/ruby_real_mpfr.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ VALUE crealmpfr_to_float(VALUE self)
4242
//sympify(self, cbasic_operand1);
4343
//result = rb_float_new(real_mpfr_get_d(cbasic_operand1));
4444

45-
return rb_funcall(( rb_funcall( self, rb_intern("to_s"), 1, rb_str_new2("F")) ),
46-
rb_intern("to_f"), 0, NULL);
45+
return rb_funcall(rb_funcall(self, rb_intern("to_s"), 0, NULL), rb_intern("to_f"), 0, NULL);
4746
}
4847

0 commit comments

Comments
 (0)