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

ruby-changes:49185

From: nobu <ko1@a...>
Date: Sun, 17 Dec 2017 18:40:24 +0900 (JST)
Subject: [ruby-changes:49185] nobu:r61303 (trunk): thread.c: adjusted [ci skip]

nobu	2017-12-17 18:40:19 +0900 (Sun, 17 Dec 2017)

  New Revision: 61303

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61303

  Log:
    thread.c: adjusted [ci skip]
    
    * thread.c (timeval_add): adjusted indent and parenthesized in
      braces.

  Modified files:
    trunk/thread.c
Index: thread.c
===================================================================
--- thread.c	(revision 61302)
+++ thread.c	(revision 61303)
@@ -1145,13 +1145,14 @@ timeval_add(struct timeval *dst, const s https://github.com/ruby/ruby/blob/trunk/thread.c#L1145
     else
         dst->tv_sec += tv->tv_sec;
     if ((dst->tv_usec += tv->tv_usec) >= 1000000) {
-        if (dst->tv_sec == TIMEVAL_SEC_MAX)
+	if (dst->tv_sec == TIMEVAL_SEC_MAX) {
             dst->tv_usec = 999999;
-         else {
+	}
+	else {
             dst->tv_sec++;
             dst->tv_usec -= 1000000;
-         }
-     }
+	}
+    }
 }
 
 static int

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

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