(j3.2006) Does C99 have an equivalent to HUGE?
Van Snyder
Van.Snyder
Mon Jun 29 14:26:23 EDT 2009
I have a C code in which gcc 4.4.0 on a Mac notices
e_float/efx/e_float_efx.h(57) : warning: integer constant is too large for 'long' type
e_float/efx/e_float_efx.h(58) : warning: integer constant is too large for 'long' type
The code in question is:
static const INT64 ef_max_exp10 = static_cast<INT64>(+89999999999999999);
static const INT64 ef_min_exp10 = static_cast<INT64>(-89999999999999999);
In Fortran, I'd probably use HUGE to initialize these constants.
Does C99 have an equivalent?
Van
More information about the J3
mailing list