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

[ruby/bigdecimal] Adjust a local variable type to exponent

https://github.com/ruby/bigdecimal/commit/70146fb6ad
This commit is contained in:
Nobuyoshi Nakada 2022-01-14 00:52:11 +09:00
parent e5a852b912
commit 92361ad9c6

View file

@ -3281,7 +3281,7 @@ rb_float_convert_to_BigDecimal(VALUE val, size_t digs, int raise_exception)
VALUE inum;
size_t RB_UNUSED_VAR(prec) = 0;
size_t exp = 0;
SIGNED_VALUE exp = 0;
if (decpt > 0) {
if (decpt < len10) {
/*