diff --git a/plugins/builtin/source/content/data_inspector.cpp b/plugins/builtin/source/content/data_inspector.cpp index 5783099b6..ddeb68557 100644 --- a/plugins/builtin/source/content/data_inspector.cpp +++ b/plugins/builtin/source/content/data_inspector.cpp @@ -54,7 +54,7 @@ namespace hex::plugin::builtin { template static std::vector stringToFloat(const std::string &value, std::endian endian) requires(sizeof(T) <= sizeof(long double)) { - auto result = std::strtold(value.c_str(), nullptr); + T result = std::strtold(value.c_str(), nullptr); std::vector bytes(sizeof(T), 0x00); std::memcpy(bytes.data(), &result, bytes.size());