diff options
Diffstat (limited to 'gcc')
| -rw-r--r-- | gcc/gcc/elna-tree.cc | 4 |
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))); |
