From 97d232c11d38f94e6719c83aa31771201c85430c Mon Sep 17 00:00:00 2001 From: Aaron Franke Date: Wed, 5 Oct 2022 22:00:15 -0500 Subject: Enhancements to includes in core data structures --- core/math/rect2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/math/rect2.h') diff --git a/core/math/rect2.h b/core/math/rect2.h index 2d1be3d4f3..5ed2f8236c 100644 --- a/core/math/rect2.h +++ b/core/math/rect2.h @@ -281,7 +281,7 @@ struct _NO_DISCARD_ Rect2 { } _FORCE_INLINE_ Rect2 abs() const { - return Rect2(Point2(position.x + MIN(size.x, 0), position.y + MIN(size.y, 0)), size.abs()); + return Rect2(Point2(position.x + MIN(size.x, (real_t)0), position.y + MIN(size.y, (real_t)0)), size.abs()); } Vector2 get_support(const Vector2 &p_normal) const { -- cgit v1.2.3