mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-02 21:11:25 +12:00
fmt_unveil<> fix
This commit is contained in:
parent
4438163da1
commit
1a7ea2d235
8 changed files with 29 additions and 17 deletions
|
@ -314,14 +314,8 @@ namespace cfg
|
|||
|
||||
if (try_to_enum_value(&result, &fmt_class_string<T>::format, value))
|
||||
{
|
||||
const auto val = static_cast<std::underlying_type_t<T>>(result);
|
||||
|
||||
if (static_cast<u64>(val) != result)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
m_value = static_cast<T>(val);
|
||||
// No narrowing check, it's hard to do right there
|
||||
m_value = static_cast<T>(static_cast<std::underlying_type_t<T>>(result));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue