summaryrefslogtreecommitdiffstats
path: root/libc/tzcode/localtime.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/tzcode/localtime.c')
-rw-r--r--libc/tzcode/localtime.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/tzcode/localtime.c b/libc/tzcode/localtime.c
index 83c1011..85a913e 100644
--- a/libc/tzcode/localtime.c
+++ b/libc/tzcode/localtime.c
@@ -389,7 +389,11 @@ const time_t t0;
if (TYPE_INTEGRAL(time_t) &&
TYPE_BIT(time_t) - TYPE_SIGNED(time_t) < SECSPERREPEAT_BITS)
return 0;
+#if SECSPERREPEAT_BITS <= 32 /* to avoid compiler warning (condition is always false) */
return (t1 - t0) == SECSPERREPEAT;
+#else
+ return 0;
+#endif
}
static int toint(unsigned char *s) {