[前][次][番号順一覧][スレッド一覧]

ruby-changes:67981

From: S.H <ko1@a...>
Date: Tue, 14 Sep 2021 15:22:13 +0900 (JST)
Subject: [ruby-changes:67981] 3fd8531331 (master): Remove uneeded initialize local variable (#4818)

https://git.ruby-lang.org/ruby.git/commit/?id=3fd8531331

From 3fd85313319e69b37abeff40d48d1e5aebd043b0 Mon Sep 17 00:00:00 2001
From: "S.H" <gamelinks007@g...>
Date: Tue, 14 Sep 2021 15:22:01 +0900
Subject: Remove uneeded initialize local variable (#4818)

---
 bignum.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/bignum.c b/bignum.c
index 806d589..52f62b8 100644
--- a/bignum.c
+++ b/bignum.c
@@ -460,7 +460,6 @@ static int https://github.com/ruby/ruby/blob/trunk/bignum.c#L460
 bary_2comp(BDIGIT *ds, size_t n)
 {
     size_t i;
-    i = 0;
     for (i = 0; i < n; i++) {
         if (ds[i] != 0) {
             goto non_zero;
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]