diff --git a/Source/Core/Common/JsonUtil.h b/Source/Core/Common/JsonUtil.h index 309f32f4b4..c830d777a4 100644 --- a/Source/Core/Common/JsonUtil.h +++ b/Source/Core/Common/JsonUtil.h @@ -9,7 +9,6 @@ #include -#include "Common/MathUtil.h" #include "Common/Matrix.h" // Ideally this would use a concept like, 'template ' to constrain it, @@ -47,7 +46,7 @@ std::optional ReadNumericFromJson(const picojson::object& obj, const std:: return std::nullopt; if (!it->second.is()) return std::nullopt; - return MathUtil::SaturatingCast(it->second.get()); + return static_cast(it->second.get()); } std::optional ReadStringFromJson(const picojson::object& obj, const std::string& key);