aboutsummaryrefslogtreecommitdiff
path: root/src/common/settings_setting.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/settings_setting.h')
-rw-r--r--src/common/settings_setting.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/settings_setting.h b/src/common/settings_setting.h
index 0b18ca5ecc..ce7a3e91a6 100644
--- a/src/common/settings_setting.h
+++ b/src/common/settings_setting.h
@@ -223,7 +223,7 @@ public:
if constexpr (std::is_enum_v<Type>) {
return EnumMetadata<Type>::Index();
} else {
- return std::numeric_limits<u32>::max();
+ return (std::numeric_limits<u32>::max)();
}
}
@@ -237,14 +237,14 @@ public:
[[nodiscard]] std::string MinVal() const override final {
if constexpr (std::is_arithmetic_v<Type> && !ranged) {
- return this->ToString(std::numeric_limits<Type>::min());
+ return this->ToString((std::numeric_limits<Type>::min)());
} else {
return this->ToString(minimum);
}
}
[[nodiscard]] std::string MaxVal() const override final {
if constexpr (std::is_arithmetic_v<Type> && !ranged) {
- return this->ToString(std::numeric_limits<Type>::max());
+ return this->ToString((std::numeric_limits<Type>::max)());
} else {
return this->ToString(maximum);
}