1
0
mirror of synced 2025-02-08 15:08:11 +01:00

build: Fix compile errors on platforms where sizeof(long double) > sizeof(unsigned long long)

This commit is contained in:
WerWolv 2025-01-29 22:16:42 +01:00
parent e0b4acee12
commit c8cf6e7c08

View File

@ -46,7 +46,7 @@ namespace hex::plugin::builtin {
try {
if (!value.contains('.')) {
m_value = i128(std::stoull(value, nullptr, 0) * static_cast<long double>(m_multiplier));
m_value = i128(double(std::stoull(value, nullptr, 0) * static_cast<long double>(m_multiplier)));
} else {
m_value = std::stod(value) * m_multiplier;
}