From c8cf6e7c083d4d6357d946f71ea815543fe6c739 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Wed, 29 Jan 2025 22:16:42 +0100 Subject: [PATCH] build: Fix compile errors on platforms where sizeof(long double) > sizeof(unsigned long long) --- plugins/builtin/source/content/command_palette_commands.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/builtin/source/content/command_palette_commands.cpp b/plugins/builtin/source/content/command_palette_commands.cpp index 33f46e276..5f196560c 100644 --- a/plugins/builtin/source/content/command_palette_commands.cpp +++ b/plugins/builtin/source/content/command_palette_commands.cpp @@ -46,7 +46,7 @@ namespace hex::plugin::builtin { try { if (!value.contains('.')) { - m_value = i128(std::stoull(value, nullptr, 0) * static_cast(m_multiplier)); + m_value = i128(double(std::stoull(value, nullptr, 0) * static_cast(m_multiplier))); } else { m_value = std::stod(value) * m_multiplier; }