From 5164c8a4ac8b931c2d0ed74fd78135c5742cec92 Mon Sep 17 00:00:00 2001 From: Michael Jones Date: Mon, 21 Oct 2024 20:24:49 -0700 Subject: [PATCH] [libc] Fix long double is double double const 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 5ea54a4f9ef9d..30c742c007ca1 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