summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-17 09:40:19 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-17 09:40:19 +0000
commitcb26d0d9bb9d335a1ff36169a4f10f3f1e06417c (patch)
tree879626072179845c01f0301e6d1130fb3ff7240e /thread.c
parentdb9523ef47c9bdc895803a12690713bf49379051 (diff)
thread.c: adjusted [ci skip]
* thread.c (timeval_add): adjusted indent and parenthesized in braces. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/thread.c b/thread.c
index e70f29e4f7..2b0954e803 100644
--- a/thread.c
+++ b/thread.c
@@ -1145,13 +1145,14 @@ timeval_add(struct timeval *dst, const struct timeval *tv)
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