Branch: Tag:

2008-04-22

2008-04-22 18:17:55 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.109
Rev: src/builtin_functions.c:1.481
Rev: src/configure.in:1.702
Rev: src/global.h:1.81

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: global.h,v 1.80 2005/03/18 21:38:18 grubba Exp $ + || $Id: global.h,v 1.81 2008/04/22 18:17:55 mast Exp $   */      #ifndef GLOBAL_H
162: Inside #if SIZEOF_LONG >= 8
     #if SIZEOF_LONG >= 8   #define INT64 long - #else - #if SIZEOF___INT64 - 0 >= 8 + #define SIZEOF_INT64 SIZEOF_LONG + #elif SIZEOF___INT64 - 0 >= 8   #define INT64 __int64 - #else - #if SIZEOF_LONG_LONG - 0 >= 8 + #define SIZEOF_INT64 SIZEOF___INT64 + #elif SIZEOF_LONG_LONG - 0 >= 8   #define INT64 long long -  + #define SIZEOF_INT64 SIZEOF_LONG_LONG   #endif - #endif - #endif +       #if SIZEOF_SHORT >= 4   #define INT32 short
237: Inside #if defined(INT64)
     #ifdef INT64   #define LONGEST INT64 + #define SIZEOF_LONGEST SIZEOF_INT64   #else   #define LONGEST INT32 -  + #define SIZEOF_LONGEST 4   #endif      #define SIZE_T unsigned INT32