From 4275a731249c5becec666f47d26254695fd7f468 Mon Sep 17 00:00:00 2001 From: Michael Jones Date: Tue, 22 Oct 2024 07:31:57 -0700 Subject: [PATCH] [libc] Fix long double is double double const (#113258) Turns out for double double LDBL_MANT_DIG == 106. This patch fixes the constant. Should fix the ppc buildbot. Previously: https://github.com/llvm/llvm-project/pull/113235 https://github.com/llvm/llvm-project/issues/113237 https://github.com/llvm/llvm-project/pull/91651 --- libc/src/__support/macros/properties/types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/src/__support/macros/properties/types.h b/libc/src/__support/macros/properties/types.h index 5ea54a4f9ef9dd..30c742c007ca19 100644 --- a/libc/src/__support/macros/properties/types.h +++ b/libc/src/__support/macros/properties/types.h @@ -27,7 +27,7 @@ #define LIBC_TYPES_LONG_DOUBLE_IS_X86_FLOAT80 #elif (LDBL_MANT_DIG == 113) #define LIBC_TYPES_LONG_DOUBLE_IS_FLOAT128 -#elif (LDBL_MANT_DIG == 103) +#elif (LDBL_MANT_DIG == 106) #define LIBC_TYPES_LONG_DOUBLE_IS_DOUBLE_DOUBLE #endif