diff --git a/newlib/ChangeLog b/newlib/ChangeLog index cc9fd9168..f79530cff 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2005-02-25 Ralf Corsepious + + * libm/common/fdlibm.h (FLT_UWORD_MAX, FLT_UWORD_HALF_MAX): Add + L qualifier for these long constants. + 2005-02-25 Eric Blake * libc/include/time.h (__tzrule_struct): Make offset long, since diff --git a/newlib/libm/common/fdlibm.h b/newlib/libm/common/fdlibm.h index 2b1bb79c0..7a0f28db4 100644 --- a/newlib/libm/common/fdlibm.h +++ b/newlib/libm/common/fdlibm.h @@ -71,13 +71,13 @@ #define FLT_UWORD_IS_FINITE(x) ((x)<0x7f800000L) #define FLT_UWORD_IS_NAN(x) ((x)>0x7f800000L) #define FLT_UWORD_IS_INFINITE(x) ((x)==0x7f800000L) -#define FLT_UWORD_MAX 0x7f7fffff +#define FLT_UWORD_MAX 0x7f7fffffL #define FLT_UWORD_EXP_MAX 0x43000000 #define FLT_UWORD_LOG_MAX 0x42b17217 #define FLT_UWORD_LOG_2MAX 0x42b2d4fc #define HUGE ((float)3.40282346638528860e+38) #endif -#define FLT_UWORD_HALF_MAX (FLT_UWORD_MAX-(1<<23)) +#define FLT_UWORD_HALF_MAX (FLT_UWORD_MAX-(1L<<23)) #define FLT_LARGEST_EXP (FLT_UWORD_MAX>>23) /* Many routines check for zero and subnormal numbers. Such things depend