Tzdata2006b.tar.gz, tz32code2006b.tar.gz, and tz64code2006b.tar.gz
Paul Eggert
eggert at CS.UCLA.EDU
Thu Feb 23 06:19:28 UTC 2006
Bennett Todd <bet at rahul.net> writes:
> localtime.c:331: warning: integer overflow in expression
> /zic: wild compilation-time specification of zic_t
Both of those are symptoms of the same problem: you compiled the code
in such a way that the code thinks there is no 64-bit integer support.
Here's a proposed patch that will catch this problem earlier and make
the fix more obvious:
--- private.h 2006/02/22 00:24:05 2006.2.0.2
+++ private.h 2006/02/23 06:18:32 2006.2.0.5
@@ -136,6 +136,10 @@ static char privatehid[] = "@(#)private.
#ifdef LLONG_MAX
typedef long long int_fast64_t;
#else /* !defined LLONG_MAX */
+#if (LONG_MAX >> 31) < 0xffffffff
+Please use a compiler that supports a 64-bit integer type (or wider);
+you may need to compile with "-DHAVE_STDINT_H".
+#endif /* (LONG_MAX >> 31) < 0xffffffff */
typedef long int_fast64_t;
#endif /* !defined LLONG_MAX */
#endif /* !defined INT_FAST64_MAX */
More information about the tz
mailing list