* localtime.c (time2sub) [!defined ckd_sub]: Fix typos in Friday’s
“Fix remaining Naveed8951-reported overflows” changes. This is
needed for GCC 13 and earlier, and for other pre-C23 compilers
that lack <stdckdint.h>.
---
localtime.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/localtime.c b/localtime.c
index 698f61bf..40a4d7ee 100644
--- a/localtime.c
+++ b/localtime.c
@@ -2697,8 +2697,8 @@ time2sub(struct tm *const tmp,
v = ckd_sub(&offdiff, mytm.TM_GMTOFF, yourtm.TM_GMTOFF);
# else
/* A ckd_sub approximation that is good enough here. */
- v = !(-TWO_31_MINUS_1 <= yourm.TM_GMTOFF
- && your.TM_GMTOFF <= TWO_31_MINUS_1);
+ v = !(-TWO_31_MINUS_1 <= yourtm.TM_GMTOFF
+ && yourtm.TM_GMTOFF <= TWO_31_MINUS_1);
if (!v)
offdiff = utoff_diff(mytm.TM_GMTOFF, yourtm.TM_GMTOFF);
# endif
--
2.52.0