mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-28 13:28:01 +03:00
Config fix
This commit is contained in:
parent
f010b5b235
commit
1c2a423b14
1 changed files with 7 additions and 1 deletions
|
@ -103,7 +103,13 @@ bool cfg::try_to_enum_value(u64* out, decltype(&fmt_class_string<int>::format) f
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
const auto val = std::stoull(value, nullptr, 0);
|
std::size_t pos;
|
||||||
|
const auto val = std::stoull(value, &pos, 0);
|
||||||
|
|
||||||
|
if (pos != value.size())
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (out) *out = val;
|
if (out) *out = val;
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue