diff options
author | David Robillard <d@drobilla.net> | 2023-05-03 10:25:20 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-05-03 10:38:23 -0400 |
commit | 7f7ff7e0a1f3bb936006615773a974e2bcd2afb0 (patch) | |
tree | 1069c3ec9c26bf8e7ecac6a9ff516804b838decb /src/win.c | |
parent | 3932b6bb06a0fe28a990d4906b4e9ca77764a729 (diff) | |
download | pugl-7f7ff7e0a1f3bb936006615773a974e2bcd2afb0.tar.gz pugl-7f7ff7e0a1f3bb936006615773a974e2bcd2afb0.tar.bz2 pugl-7f7ff7e0a1f3bb936006615773a974e2bcd2afb0.zip |
Fix implicit sign conversions
Diffstat (limited to 'src/win.c')
-rw-r--r-- | src/win.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |