From 2f0dee40eaaa9d0be020876fa2221f285429c7b3 Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 16 Jan 2023 19:41:58 +0500 Subject: [PATCH] Use explicit coord type in GetClampedCoords. --- libs/kimath/include/geometry/geometry_utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/kimath/include/geometry/geometry_utils.h b/libs/kimath/include/geometry/geometry_utils.h index 5ef51f96b7..ec6296fefa 100644 --- a/libs/kimath/include/geometry/geometry_utils.h +++ b/libs/kimath/include/geometry/geometry_utils.h @@ -150,7 +150,7 @@ template ::value>::type> VECTOR2 GetClampedCoords( const VECTOR2& aCoords, pad_type aPadding = 1u ) { - typedef std::numeric_limits coord_limits; + typedef std::numeric_limits coord_limits; long long max = static_cast( coord_limits::max() ) - aPadding; long long min = -max;