From 7f7ff7e0a1f3bb936006615773a974e2bcd2afb0 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 3 May 2023 10:25:20 -0400 Subject: Fix implicit sign conversions --- src/win.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/win.c') diff --git a/src/win.c b/src/win.c index 33b37b6..4abed87 100644 --- a/src/win.c +++ b/src/win.c @@ -1561,8 +1561,8 @@ getInitialFrame(PuglView* const view) // Center the frame around the center of the bounding rectangle const LONG centerX = rect.left + (rect.right - rect.left) / 2; const LONG centerY = rect.top + (rect.bottom - rect.top) / 2; - const PuglRect frame = {(PuglCoord)(centerX - (defaultWidth / 2U)), - (PuglCoord)(centerY - (defaultHeight / 2U)), + const PuglRect frame = {(PuglCoord)(centerX - (defaultWidth / 2)), + (PuglCoord)(centerY - (defaultHeight / 2)), defaultWidth, defaultHeight}; return frame; -- cgit v1.2.1