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

ruby-changes:74217

From: Nobuyoshi <ko1@a...>
Date: Mon, 24 Oct 2022 00:22:58 +0900 (JST)
Subject: [ruby-changes:74217] c3e37f74ae (master): Adjust indents [ci skip]

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

From c3e37f74aede27503fe1477cbd4bdde7d4df15da Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Mon, 24 Oct 2022 00:22:37 +0900
Subject: Adjust indents [ci skip]

---
 hash.c | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/hash.c b/hash.c
index 37c32af3ba..876d8b9efc 100644
--- a/hash.c
+++ b/hash.c
@@ -963,7 +963,7 @@ ar_foreach(VALUE hash, st_foreach_callback_func *func, st_data_t arg) https://github.com/ruby/ruby/blob/trunk/hash.c#L963
 
 static int
 ar_foreach_check(VALUE hash, st_foreach_check_callback_func *func, st_data_t arg,
-                     st_data_t never)
+                 st_data_t never)
 {
     if (RHASH_AR_TABLE_SIZE(hash) > 0) {
         unsigned i, ret = 0, bound = RHASH_AR_TABLE_BOUND(hash);
@@ -984,13 +984,13 @@ ar_foreach_check(VALUE hash, st_foreach_check_callback_func *func, st_data_t arg https://github.com/ruby/ruby/blob/trunk/hash.c#L984
 
             switch (retval) {
               case ST_CHECK: {
-                  pair = RHASH_AR_TABLE_REF(hash, i);
-                  if (pair->key == never) break;
-                  ret = ar_find_entry_hint(hash, hint, key);
-                  if (ret == RHASH_AR_TABLE_MAX_BOUND) {
-                      retval = (*func)(0, 0, arg, 1);
-                      return 2;
-                  }
+                pair = RHASH_AR_TABLE_REF(hash, i);
+                if (pair->key == never) break;
+                ret = ar_find_entry_hint(hash, hint, key);
+                if (ret == RHASH_AR_TABLE_MAX_BOUND) {
+                    retval = (*func)(0, 0, arg, 1);
+                    return 2;
+                }
               }
               case ST_CONTINUE:
                 break;
@@ -998,11 +998,11 @@ ar_foreach_check(VALUE hash, st_foreach_check_callback_func *func, st_data_t arg https://github.com/ruby/ruby/blob/trunk/hash.c#L998
               case ST_REPLACE:
                 return 0;
               case ST_DELETE: {
-                  if (!ar_cleared_entry(hash, i)) {
-                      ar_clear_entry(hash, i);
-                      RHASH_AR_TABLE_SIZE_DEC(hash);
-                  }
-                  break;
+                if (!ar_cleared_entry(hash, i)) {
+                    ar_clear_entry(hash, i);
+                    RHASH_AR_TABLE_SIZE_DEC(hash);
+                }
+                break;
               }
             }
         }
-- 
cgit v1.2.3


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

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