From 00d1c0dc9df98b642a6b1f3bb7f8f58ceda1d956 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Wed, 3 May 2023 06:55:17 -0700 Subject: [PATCH] Qt: Fix saturateCast signed check --- src/platform/qt/utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/qt/utils.h b/src/platform/qt/utils.h index 6e2f6ec96..7f317f499 100644 --- a/src/platform/qt/utils.h +++ b/src/platform/qt/utils.h @@ -74,7 +74,7 @@ constexpr const T& clamp(const T& v, const T& lo, const T& hi) { template constexpr T saturateCast(U value) { - if (std::numeric_limits::is_signed == std::numeric_limits::is_signed) { + if (std::numeric_limits::is_signed == std::numeric_limits::is_signed) { if (value > std::numeric_limits::max()) { return std::numeric_limits::max(); }