1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2024-11-12 21:09:01 +00:00

fix numeric_limits<long double>

If SPROUT_NO_CXX11_NUMERIC_LIMITS and __LDBL_DENORM_MIN__ is defined,
the definition of numeric_limits uses __builtin_huge_val, __builtin_nan
and __builtin_nans but I think that it should use __builtin_huge_vall,
__builtin_nanl and __builtin_nansl, respectively.
This commit is contained in:
Mitsuru Kariya 2014-07-16 21:01:13 +09:00
parent 7d0f748870
commit 611fba8774

View file

@ -293,7 +293,7 @@ namespace sprout {
long double,
LDBL_MIN, LDBL_MAX,
LDBL_EPSILON, 0.5L,
__builtin_huge_val(), __builtin_nan(""), __builtin_nans(""), __LDBL_DENORM_MIN__
__builtin_huge_vall(), __builtin_nanl(""), __builtin_nansl(""), __LDBL_DENORM_MIN__
);
#endif // #if !defined(__LDBL_DENORM_MIN__)
#undef SPROUT_NUMERIC_LIMITS_FLOATING_POINT_SPECIALIZED_DECL