[ruby/bigdecimal] Stop using GetVpValue in rb_big_convert_to_BigDecimal
https://github.com/ruby/bigdecimal/commit/034fd2b25e
This commit is contained in:
parent
fff1edf23b
commit
887a1bfbbc
@ -2791,7 +2791,10 @@ rb_big_convert_to_BigDecimal(VALUE val, RB_UNUSED_VAR(size_t digs), int raise_ex
|
||||
}
|
||||
#endif
|
||||
else {
|
||||
Real *vp = GetVpValue(val, 1);
|
||||
VALUE str = rb_big2str(val, 10);
|
||||
Real *vp = VpCreateRbObject(RSTRING_LEN(str) + BASE_FIG + 1,
|
||||
RSTRING_PTR(str), true);
|
||||
RB_GC_GUARD(str);
|
||||
return check_exception(vp->obj);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user