diff --git a/External/FEXCore/Source/Common/StringConv.h b/External/FEXCore/Source/Common/StringConv.h index b994ca518..112b10f75 100644 --- a/External/FEXCore/Source/Common/StringConv.h +++ b/External/FEXCore/Source/Common/StringConv.h @@ -7,32 +7,32 @@ namespace FEXCore::StrConv { [[maybe_unused]] static bool Conv(std::string_view Value, bool *Result) { - *Result = std::stoull(Value.data(), nullptr, 0); + *Result = std::strtoull(Value.data(), nullptr, 0); return true; } [[maybe_unused]] static bool Conv(std::string_view Value, uint8_t *Result) { - *Result = std::stoul(Value.data(), nullptr, 0); + *Result = std::strtoul(Value.data(), nullptr, 0); return true; } [[maybe_unused]] static bool Conv(std::string_view Value, uint16_t *Result) { - *Result = std::stoul(Value.data(), nullptr, 0); + *Result = std::strtoul(Value.data(), nullptr, 0); return true; } [[maybe_unused]] static bool Conv(std::string_view Value, uint32_t *Result) { - *Result = std::stoul(Value.data(), nullptr, 0); + *Result = std::strtoul(Value.data(), nullptr, 0); return true; } [[maybe_unused]] static bool Conv(std::string_view Value, int32_t *Result) { - *Result = std::stol(Value.data(), nullptr, 0); + *Result = std::strtol(Value.data(), nullptr, 0); return true; } [[maybe_unused]] static bool Conv(std::string_view Value, uint64_t *Result) { - *Result = std::stoull(Value.data(), nullptr, 0); + *Result = std::strtoull(Value.data(), nullptr, 0); return true; } template