aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2026-08-08 12:50:43 +0200
committerEugen Wissner <belka@caraus.de>2026-08-08 12:50:43 +0200
commitae29de96c94e5c582f4424804464cdd29bf2a013 (patch)
tree10936bcf8e4feef83de5f8aed70aab11a1e46668 /gcc
parenteaf5934f81dcd8ce5705f13b651d7b93ca8c459f (diff)
downloadelna-cpp.tar.gz
Fix GCC 16 compatibility with MacOSHEADcpp
Diffstat (limited to 'gcc')
-rw-r--r--gcc/gcc/elna-tree.cc4
1 files changed, 2 insertions, 2 deletions
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<double>(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<HOST_WIDE_INT, bits_size> target_bits;
+ constexpr std::size_t bits_size = (sizeof(double) + sizeof(long) - 1) / sizeof(long);
+ std::array<long, bits_size> 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)));