fix FP_ILOGB0 and FP_ILOGBNAN definitions to be valid for use in #if

commit 98c9af5001 wrongly claimed they
do not need to be valid for such usage, but the last sentence of C11
7.1.4 ¶1 imposes a broad requirement that all macros specified as
integer constant expressions also need to be valid for #if.

simply write the value out explicitly. there is no value here in
pretending that the width of int will vary.
This commit is contained in:
Rich Felker 2018-08-22 19:11:58 -04:00
parent 767f7a1091
commit 184ef36f85
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ extern "C" {
#define MATH_ERREXCEPT 2
#define math_errhandling 2
#define FP_ILOGBNAN (-1-(int)(((unsigned)-1)>>1))
#define FP_ILOGBNAN (-1-0x7fffffff)
#define FP_ILOGB0 FP_ILOGBNAN
#define FP_NAN 0