diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-07-19 11:22:03 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-07-19 11:22:03 +0000 |
commit | 5ad205b81dff6a2fd9804d06bd52f06d8102b952 (patch) | |
tree | c113b45cd4f1406f906cad940ce366f6cf6efc19 /time.c | |
parent | 1adbbc3f48e1f686729b57cb74c668085078d316 (diff) | |
download | ruby-5ad205b81dff6a2fd9804d06bd52f06d8102b952.tar.gz |
renamed ruby_tz_update as ruby_tz_uptodate_p
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'time.c')
-rw-r--r-- | time.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -647,7 +647,7 @@ static struct vtm *localtimew(wideval_t timew, struct vtm *result); static int leap_year_p(long y); #define leap_year_v_p(y) leap_year_p(NUM2LONG(modv((y), INT2FIX(400)))) -int ruby_tz_update; +bool ruby_tz_uptodate_p; static struct tm * rb_localtime_r(const time_t *t, struct tm *result) @@ -655,8 +655,8 @@ rb_localtime_r(const time_t *t, struct tm *result) #if defined __APPLE__ && defined __LP64__ if (*t != (time_t)(int)*t) return NULL; #endif - if (!ruby_tz_update) { - ruby_tz_update = 1; + if (!ruby_tz_uptodate_p) { + ruby_tz_uptodate_p = 1; tzset(); } #ifdef HAVE_GMTIME_R |