From ae29de96c94e5c582f4424804464cdd29bf2a013 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Sat, 8 Aug 2026 12:50:43 +0200 Subject: Fix GCC 16 compatibility with MacOS --- gcc/gcc/elna-tree.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc') diff --git a/gcc/gcc/elna-tree.cc b/gcc/gcc/elna-tree.cc index 10efb90..05690d6 100644 --- a/gcc/gcc/elna-tree.cc +++ b/gcc/gcc/elna-tree.cc @@ -299,8 +299,8 @@ namespace elna::gcc { auto real_value = std::get(constant_value); REAL_VALUE_TYPE real; - constexpr std::size_t bits_size = (sizeof(double) + sizeof(HOST_WIDE_INT) - 1) / sizeof(HOST_WIDE_INT); - std::array target_bits; + constexpr std::size_t bits_size = (sizeof(double) + sizeof(long) - 1) / sizeof(long); + std::array target_bits; std::memcpy(target_bits.data(), &real_value, sizeof(real_value)); real_from_target(&real, target_bits.data(), REAL_MODE_FORMAT(TYPE_MODE(elna_float_type_node))); -- cgit v1.2.3