changeset 6522:6c46542a5ce5 HEAD

With 32bit time_t we were checking it up to 64 bits, which overflowed the checks and broke them.
author Timo Sirainen <tss@iki.fi>
date Sun, 30 Sep 2007 18:24:39 +0300
parents 9534f7adc0c6
children 19b73ae1d6f6
files configure.in
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure.in	Sun Sep 30 18:23:36 2007 +0300
+++ b/configure.in	Sun Sep 30 18:24:39 2007 +0300
@@ -928,7 +928,7 @@
       FILE *f;
       int bits;
   
-      for (bits = 1; bits < 64; bits++) {
+      for (bits = 1; bits < sizeof(time_t)*8; bits++) {
 	time_t t = ((time_t)1 << bits) - 1;
 	if (gmtime(&t) == NULL) {
 	  bits--;