1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/bigdecimal] Fix type name

https://github.com/ruby/bigdecimal/commit/2dad4d17b2
This commit is contained in:
Kenta Murata 2021-01-10 08:37:35 +09:00
parent 8b53cbaf5e
commit 2e9b6096a6

View file

@ -205,7 +205,7 @@ static VALUE rb_rational_convert_to_BigDecimal(VALUE val, size_t digs, int raise
static Real*
GetVpValueWithPrec(VALUE v, long prec, int must)
{
const size_t digs = prec < 0 ? SIZE_MAX : (long)prec;
const size_t digs = prec < 0 ? SIZE_MAX : (size_t)prec;
Real *pv;
switch(TYPE(v)) {