1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Set TRUE/FALSE to bool ruby_tz_uptodate_p instead of 1/FALSE

This commit is contained in:
Kazuhiro NISHIYAMA 2019-11-25 12:10:05 +09:00
parent 714a0cefc1
commit 5c6235a83c
No known key found for this signature in database
GPG key ID: 262ED8DBB4222F7A

2
time.c
View file

@ -680,7 +680,7 @@ rb_localtime_r(const time_t *t, struct tm *result)
if (*t != (time_t)(int)*t) return NULL; if (*t != (time_t)(int)*t) return NULL;
#endif #endif
if (!ruby_tz_uptodate_p) { if (!ruby_tz_uptodate_p) {
ruby_tz_uptodate_p = 1; ruby_tz_uptodate_p = TRUE;
tzset(); tzset();
} }
#ifdef HAVE_GMTIME_R #ifdef HAVE_GMTIME_R