Skip to content

Commit ff8eeeb

Browse files
committed
Should not pass the original object but the converted string
1 parent 95c201f commit ff8eeeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/bigdecimal/bigdecimal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2934,7 +2934,7 @@ rb_convert_to_BigDecimal(VALUE val, size_t digs, int raise_exception)
29342934
}
29352935
return Qnil;
29362936
}
2937-
return rb_str_convert_to_BigDecimal(val, digs, raise_exception);
2937+
return rb_str_convert_to_BigDecimal(str, digs, raise_exception);
29382938
}
29392939

29402940
/* call-seq:

0 commit comments

Comments
 (0)