build: Fix compile errors on platforms where sizeof(long double) > sizeof(unsigned long long)
This commit is contained in:
parent
e0b4acee12
commit
c8cf6e7c08
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user