summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--time64.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/time64.c b/time64.c
index 957218074f..475134f3c4 100644
--- a/time64.c
+++ b/time64.c
@@ -467,11 +467,12 @@ struct TM *Perl_localtime64_r (const Time64_T *time, struct TM *local_tm)
struct TM gm_tm;
Year orig_year;
int month_diff;
+ const bool use_system = SHOULD_USE_SYSTEM_LOCALTIME(*time);
assert(local_tm != NULL);
/* Use the system localtime() if time_t is small enough */
- if( SHOULD_USE_SYSTEM_LOCALTIME(*time) ) {
+ if (use_system) {
safe_time = (time_t)*time;
TIME64_TRACE1("Using system localtime for %lld\n", *time);