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

ruby-changes:55661

From: git <ko1@a...>
Date: Sun, 5 May 2019 11:14:08 +0900 (JST)
Subject: [ruby-changes:55661] git: f1b52d3a88 (trunk): * expand tabs.

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

From f1b52d3a8889dbffddadd3e3ccf05fb9a90b18ee Mon Sep 17 00:00:00 2001
From: git <svn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>
Date: Sun, 5 May 2019 11:13:54 +0900
Subject: * expand tabs.


diff --git a/compile.c b/compile.c
index 7dbf244..6135eb0 100644
--- a/compile.c
+++ b/compile.c
@@ -4107,13 +4107,13 @@ when_vals(rb_iseq_t *iseq, LINK_ANCHOR *const cond_seq, const NODE *vals, https://github.com/ruby/ruby/blob/trunk/compile.c#L4107
 {
     while (vals) {
 	const NODE *val = vals->nd_head;
-	VALUE lit = rb_node_case_when_optimizable_literal(val);
+        VALUE lit = rb_node_case_when_optimizable_literal(val);
 
 	if (lit == Qundef) {
 	    only_special_literals = 0;
 	}
-	else if (NIL_P(rb_hash_lookup(literals, lit))) {
-	    rb_hash_aset(literals, lit, (VALUE)(l1) | 1);
+        else if (NIL_P(rb_hash_lookup(literals, lit))) {
+            rb_hash_aset(literals, lit, (VALUE)(l1) | 1);
 	}
 
 	ADD_INSN(cond_seq, nd_line(val), dup); /* dup target */
-- 
cgit v0.10.2


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

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