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

ruby-changes:66028

From: xtkoba <ko1@a...>
Date: Mon, 3 May 2021 08:17:32 +0900 (JST)
Subject: [ruby-changes:66028] 511b2f300f (master): Get rid of misleading indentation

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

From 511b2f300f996f4f4ea3420953eb3ded8e575016 Mon Sep 17 00:00:00 2001
From: xtkoba <69125751+xtkoba@u...>
Date: Sat, 1 May 2021 22:26:55 +0900
Subject: Get rid of misleading indentation

---
 util.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/util.c b/util.c
index 8ec0cd6..21f5965 100644
--- a/util.c
+++ b/util.c
@@ -400,7 +400,8 @@ ruby_qsort(void* base, const size_t nel, const size_t size, cmpfunc_t *cmp, void https://github.com/ruby/ruby/blob/trunk/util.c#L400
   for (;;) {
     start:
     if (L + size == R) {       /* 2 elements */
-      if ((*cmp)(L,R,d) > 0) mmswap(L,R); goto nxt;
+      if ((*cmp)(L,R,d) > 0) mmswap(L,R);
+      goto nxt;
     }
 
     l = L; r = R;
-- 
cgit v1.1


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

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