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:
parent
714a0cefc1
commit
5c6235a83c
1 changed files with 1 additions and 1 deletions
2
time.c
2
time.c
|
@ -680,7 +680,7 @@ rb_localtime_r(const time_t *t, struct tm *result)
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue