Skip to content

Commit

Permalink
Should not pass the original object but the converted string
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkn committed Jan 12, 2021
1 parent 95c201f commit ff8eeeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/bigdecimal/bigdecimal.c
Original file line number Diff line number Diff line change
Expand Up @@ -2934,7 +2934,7 @@ rb_convert_to_BigDecimal(VALUE val, size_t digs, int raise_exception)
}
return Qnil;
}
return rb_str_convert_to_BigDecimal(val, digs, raise_exception);
return rb_str_convert_to_BigDecimal(str, digs, raise_exception);
}

/* call-seq:
Expand Down

0 comments on commit ff8eeeb

Please sign in to comment.