chiark / gitweb /
avoid using HUGE_VAL to initialize global variable
authorAmro <amroamroamro@gmail.com>
Sun, 11 Sep 2016 14:33:14 +0000 (17:33 +0300)
committerAmro <amroamroamro@gmail.com>
Tue, 13 Sep 2016 18:24:26 +0000 (21:24 +0300)
commitf3d1b3eafc183e6b8dc3a363d72acc86b0f15b53
tree42cdb7dd19d35e8da5b07acbfc8605678f480a70
parentafb8a7e038f63270ecc46bdc71ee7e0a98ce7a33
avoid using HUGE_VAL to initialize global variable

in some older C (not C++) compilers, HUGE_VAL macro is not
always a constant expression (VS2010 is in this category)

Only C99 (section 7.12) guarantees the macro to expand
to a constant expression but not C90 (section 7.5)
test/box.c