mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2024-12-23 21:25:49 +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:
parent
7d0f748870
commit
611fba8774
1 changed files with 1 additions and 1 deletions
|
@ -293,7 +293,7 @@ namespace sprout {
|
||||||
long double,
|
long double,
|
||||||
LDBL_MIN, LDBL_MAX,
|
LDBL_MIN, LDBL_MAX,
|
||||||
LDBL_EPSILON, 0.5L,
|
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__)
|
#endif // #if !defined(__LDBL_DENORM_MIN__)
|
||||||
#undef SPROUT_NUMERIC_LIMITS_FLOATING_POINT_SPECIALIZED_DECL
|
#undef SPROUT_NUMERIC_LIMITS_FLOATING_POINT_SPECIALIZED_DECL
|
||||||
|
|
Loading…
Reference in a new issue