From e497eea68ca704f62d3a65f1bbe787167cd3ae3e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 25 Jan 2021 12:28:32 +0100 Subject: Fix warnings when compiling for X11 as C++ --- src/x11.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/x11.c') diff --git a/src/x11.c b/src/x11.c index a422e73..6c8f564 100644 --- a/src/x11.c +++ b/src/x11.c @@ -1119,8 +1119,12 @@ puglDispatchX11Events(PuglWorld* world) XWindowAttributes attrs; XGetWindowAttributes(view->impl->display, view->impl->win, &attrs); - const PuglEventConfigure configure = { - PUGL_CONFIGURE, 0, attrs.x, attrs.y, attrs.width, attrs.height}; + const PuglEventConfigure configure = {PUGL_CONFIGURE, + 0, + (double)attrs.x, + (double)attrs.y, + (double)attrs.width, + (double)attrs.height}; puglDispatchEvent(view, (const PuglEvent*)&configure); puglDispatchEvent(view, &event); -- cgit v1.2.1