summaryrefslogtreecommitdiff
path: root/time64.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-03-16 07:42:58 -0600
committerKarl Williamson <khw@cpan.org>2020-03-18 18:08:57 -0600
commit06769212df5bc035d19607bad7be96be9e2ce6fe (patch)
tree7419f287a72ee41fef7739f33ea6af941e0c4130 /time64.c
parent0e72ccea99231fdf256314049ce270602f5c63ac (diff)
downloadperl-06769212df5bc035d19607bad7be96be9e2ce6fe.tar.gz
time64.c: Add a branch prediction for unlikely event
Diffstat (limited to 'time64.c')
-rw-r--r--time64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/time64.c b/time64.c
index c848513ce3..bbcef8e774 100644
--- a/time64.c
+++ b/time64.c
@@ -518,7 +518,7 @@ struct TM *Perl_localtime64_r (const Time64_T *time, struct TM *local_tm)
* when appropriate */
result = localtime(&safe_time);
- if( result == NULL ) {
+ if(UNLIKELY(result == NULL)) {
LOCALTIME_UNLOCK;
TIME64_TRACE1("localtime(%d) returned NULL\n", (int)safe_time);
return NULL;