[10/59] Don’t assume TZif bloat is likely

Message ID 20250105055750.1668721-11-eggert@cs.ucla.edu (mailing list archive)
State New
Headers
Series time: sync mktime from Gnulib |

Checks

Context Check Description
redhat-pt-bot/TryBot-apply_patch success Patch applied to master at the time it was sent

Commit Message

Paul Eggert Jan. 5, 2025, 5:56 a.m. UTC
  * time/tzfile.c (__tzfile_compute): It’s no longer unlikely
that timer >= transitions[num_transitions - 1], now that
‘zic -b slim’ is commonly the default.
---
 time/tzfile.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/time/tzfile.c b/time/tzfile.c
index fa2be56580..9d5f428f47 100644
--- a/time/tzfile.c
+++ b/time/tzfile.c
@@ -527,7 +527,7 @@  __tzfile_compute (__time64_t timer, int use_localtime,
 		  ++j;
 	    }
 	}
-      else if (__glibc_unlikely (timer >= transitions[num_transitions - 1]))
+      else if (timer >= transitions[num_transitions - 1])
 	{
 	  if (__glibc_unlikely (tzspec == NULL))
 	    {