From 611fba8774447796813593f1f77d965c9f3b497b Mon Sep 17 00:00:00 2001 From: Mitsuru Kariya Date: Wed, 16 Jul 2014 21:01:13 +0900 Subject: [PATCH] fix numeric_limits 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. --- sprout/limits.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sprout/limits.hpp b/sprout/limits.hpp index dbe790a3..51a4f27d 100644 --- a/sprout/limits.hpp +++ b/sprout/limits.hpp @@ -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