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

ruby-changes:73368

From: git <ko1@a...>
Date: Fri, 2 Sep 2022 07:21:22 +0900 (JST)
Subject: [ruby-changes:73368] 3401e58f23 (master): * expand tabs. [ci skip]

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

From 3401e58f23eb05e40cda67e111a1bb4c382619f5 Mon Sep 17 00:00:00 2001
From: git <svn-admin@r...>
Date: Fri, 2 Sep 2022 07:21:12 +0900
Subject: * expand tabs. [ci skip]

Tabs were expanded because the file did not have any tab indentation in unedited lines.
Please update your editor config, and use misc/expand_tabs.rb in the pre-commit hook.
---
 compile.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/compile.c b/compile.c
index 3e51c5cd53..95318ffa84 100644
--- a/compile.c
+++ b/compile.c
@@ -9581,14 +9581,14 @@ iseq_compile_each0(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *const no https://github.com/ruby/ruby/blob/trunk/compile.c#L9581
       case NODE_CONST:{
         debugi("nd_vid", node->nd_vid);
 
-	if (ISEQ_COMPILE_DATA(iseq)->option->inline_const_cache) {
-	    body->ic_size++;
+        if (ISEQ_COMPILE_DATA(iseq)->option->inline_const_cache) {
+            body->ic_size++;
             VALUE segments = rb_ary_new_from_args(1, ID2SYM(node->nd_vid));
             ADD_INSN1(ret, node, opt_getconstant_path, segments);
             RB_OBJ_WRITTEN(iseq, Qundef, segments);
-	}
-	else {
-	    ADD_INSN(ret, node, putnil);
+        }
+        else {
+            ADD_INSN(ret, node, putnil);
             ADD_INSN1(ret, node, putobject, Qtrue);
             ADD_INSN1(ret, node, getconstant, ID2SYM(node->nd_vid));
         }
-- 
cgit v1.2.1


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

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