Skip to content

Commit 681ee2e

Browse files
committed
used RFLOAT_VALUE to fix error with Ruby 1.9.3
1 parent 8d07eab commit 681ee2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/symengine/symengine_utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ void sympify(VALUE operand2, basic_struct *cbasic_operand2) {
1515
break;
1616

1717
case T_FLOAT:
18-
f = rb_float_value(operand2);
18+
f = RFLOAT_VALUE(operand2);
1919
real_double_set_d(cbasic_operand2, f);
2020
break;
2121

0 commit comments

Comments
 (0)