mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-24 18:02:24 +00:00
Simplify umax
Add operator less and conversion operator.
This commit is contained in:
parent
b1736b6411
commit
5724d2d4c7
4 changed files with 11 additions and 27 deletions
|
@ -138,7 +138,7 @@ bool cfg::try_to_uint64(u64* out, const std::string& value, u64 min, u64 max)
|
|||
|
||||
bool cfg::try_to_enum_value(u64* out, decltype(&fmt_class_string<int>::format) func, const std::string& value)
|
||||
{
|
||||
u64 max = -1;
|
||||
u64 max = umax;
|
||||
|
||||
for (u64 i = 0;; i++)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue