# HG changeset patch # User martinb # Date 992224528 0 # Node ID 42bfaea7639538c3f33b70d26357f1f21127bd95 # Parent 023b83f4e54b83148e646aba363953e21700b487 [xemacs-hg @ 2001-06-11 01:55:26 by martinb] DECIMAL_PRINT_SIZE sun cc bug workaround diff -r 023b83f4e54b -r 42bfaea76395 src/ChangeLog --- a/src/ChangeLog Sun Jun 10 10:42:39 2001 +0000 +++ b/src/ChangeLog Mon Jun 11 01:55:28 2001 +0000 @@ -1,3 +1,9 @@ +2001-06-11 Martin Buchholz + + * lisp.h (DECIMAL_PRINT_SIZE): Don't use floating point. + Sun cc (buggily?) cannot use floating point computations to define + a compile-time integral constant. + 2001-06-10 Ben Wing diff -r 023b83f4e54b -r 42bfaea76395 src/lisp.h --- a/src/lisp.h Sun Jun 10 10:42:39 2001 +0000 +++ b/src/lisp.h Mon Jun 11 01:55:28 2001 +0000 @@ -2856,9 +2856,13 @@ /* The number of bytes required to store the decimal printed representation of an integral type. Add a few bytes for truncation, optional sign prefix, and null byte terminator. - 2.40824 == log (256) / log (10). */ + 2.40824 == log (256) / log (10). + + We don't use floating point since Sun cc (buggily?) cannot use + floating point computations to define a compile-time integral + constant. */ #define DECIMAL_PRINT_SIZE(integral_type) \ -((size_t) (2.40824 * sizeof (integral_type)) + 3) +(((2410824 * sizeof (integral_type)) / 1000000) + 3) void long_to_string (char *, long); void print_internal (Lisp_Object, Lisp_Object, int);