Branch: Tag:

2008-04-22

2008-04-22 18:32:54 by Martin Stjernholm <mast@lysator.liu.se>

Fixed overflow error in mktime when sizeof(time_t) > sizeof(INT_TYPE). This
fixes [bug 4525 (#4525)]. Fixed gmtime, localtime and ctime to handle bignums in the
same circumstances.

Rev: src/builtin.cmod:1.196
Rev: src/builtin_functions.c:1.654
Rev: src/pike_int_types.h:1.4

1:   /* Integer types with defined sizes.    * -  * $Id: pike_int_types.h,v 1.3 2004/12/14 15:06:47 mast Exp $ +  * $Id: pike_int_types.h,v 1.4 2008/04/22 18:32:54 mast Exp $    *    * Extracted from global.h 1.90    */
107:   # define MAX_ULONGEST MAX_UINT64   # define MAX_LONGEST MAX_INT64   # define MIN_LONGEST MIN_INT64 + # define SIZEOF_LONGEST SIZEOF_INT64   #else   # define LONGEST INT32   # define PRINTLONGEST ""   # define MAX_ULONGEST MAX_UINT32   # define MAX_LONGEST MAX_INT32   # define MIN_LONGEST MIN_INT32 -  + # define SIZEOF_LONGEST 4   #endif      #if SIZEOF_TIME_T == SIZEOF_INT