mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
build: Fix compile errors on platforms where sizeof(long double) > sizeof(unsigned long long)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user