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

ruby-changes:58905

From: Kazuhiro <ko1@a...>
Date: Mon, 25 Nov 2019 12:11:19 +0900 (JST)
Subject: [ruby-changes:58905] 5c6235a83c (master): Set TRUE/FALSE to `bool ruby_tz_uptodate_p` instead of 1/FALSE

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

From 5c6235a83cc6a20c27f3e3a94381b4efcad4c3fc Mon Sep 17 00:00:00 2001
From: Kazuhiro NISHIYAMA <zn@m...>
Date: Mon, 25 Nov 2019 12:10:05 +0900
Subject: Set TRUE/FALSE to `bool ruby_tz_uptodate_p` instead of 1/FALSE


diff --git a/time.c b/time.c
index 4158848..90bd9ac 100644
--- a/time.c
+++ b/time.c
@@ -680,7 +680,7 @@ rb_localtime_r(const time_t *t, struct tm *result) https://github.com/ruby/ruby/blob/trunk/time.c#L680
     if (*t != (time_t)(int)*t) return NULL;
 #endif
     if (!ruby_tz_uptodate_p) {
-	ruby_tz_uptodate_p = 1;
+	ruby_tz_uptodate_p = TRUE;
 	tzset();
     }
 #ifdef HAVE_GMTIME_R
-- 
cgit v0.10.2


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

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