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/x11_cairo.c | |
parent | 3932b6bb06a0fe28a990d4906b4e9ca77764a729 (diff) | |
download | pugl-7f7ff7e0a1f3bb936006615773a974e2bcd2afb0.tar.gz pugl-7f7ff7e0a1f3bb936006615773a974e2bcd2afb0.tar.bz2 pugl-7f7ff7e0a1f3bb936006615773a974e2bcd2afb0.zip |
Fix implicit sign conversions
Diffstat (limited to 'src/x11_cairo.c')
-rw-r--r-- | src/x11_cairo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/x11_cairo.c b/src/x11_cairo.c index eabf46f..e9d0cea 100644 --- a/src/x11_cairo.c +++ b/src/x11_cairo.c @@ -99,8 +99,8 @@ puglX11CairoEnter(PuglView* view, const PuglExposeEvent* expose) if (expose) { const PuglViewSize viewSize = puglX11CairoGetViewSize(view); - const PuglSpan right = expose->x + expose->width; - const PuglSpan bottom = expose->y + expose->height; + const PuglSpan right = (PuglSpan)(expose->x + expose->width); + const PuglSpan bottom = (PuglSpan)(expose->y + expose->height); const PuglSpan surfaceWidth = MAX(right, viewSize.width); const PuglSpan surfaceHeight = MAX(bottom, viewSize.height); if (!(st = puglX11CairoOpen(view, surfaceWidth, surfaceHeight))) { |