ruby-changes:71766
From: Nobuyoshi <ko1@a...>
Date: Mon, 18 Apr 2022 10:30:08 +0900 (JST)
Subject: [ruby-changes:71766] 92361ad9c6 (master): [ruby/bigdecimal] Adjust a local variable type to exponent
https://git.ruby-lang.org/ruby.git/commit/?id=92361ad9c6 From 92361ad9c68d82fe7de554999b2f9de8be5821bb Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Fri, 14 Jan 2022 00:52:11 +0900 Subject: [ruby/bigdecimal] Adjust a local variable type to exponent https://github.com/ruby/bigdecimal/commit/70146fb6ad --- ext/bigdecimal/bigdecimal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c index fc74c0be53..97510fad86 100644 --- a/ext/bigdecimal/bigdecimal.c +++ b/ext/bigdecimal/bigdecimal.c @@ -3281,7 +3281,7 @@ rb_float_convert_to_BigDecimal(VALUE val, size_t digs, int raise_exception) https://github.com/ruby/ruby/blob/trunk/ext/bigdecimal/bigdecimal.c#L3281 VALUE inum; size_t RB_UNUSED_VAR(prec) = 0; - size_t exp = 0; + SIGNED_VALUE exp = 0; if (decpt > 0) { if (decpt < len10) { /* -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/