aboutsummaryrefslogtreecommitdiffstats
path: root/pugl
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-07-02 00:01:15 +0200
committerDavid Robillard <d@drobilla.net>2020-07-02 00:01:15 +0200
commiteb79d76891346d3e9101be8667afe98051fdbb58 (patch)
tree509d2a7f58a8913b29f4997cd1b847222c049981 /pugl
parent6422c76a31f8dd73acebc5f6dca34f8423e78ecc (diff)
downloadpugl-eb79d76891346d3e9101be8667afe98051fdbb58.tar.gz
pugl-eb79d76891346d3e9101be8667afe98051fdbb58.tar.bz2
pugl-eb79d76891346d3e9101be8667afe98051fdbb58.zip
Fix cast alignment warnings on 32-bit ARM
Diffstat (limited to 'pugl')
-rw-r--r--pugl/detail/x11.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/pugl/detail/x11.c b/pugl/detail/x11.c
index 2d74b68..ce9e289 100644
--- a/pugl/detail/x11.c
+++ b/pugl/detail/x11.c
@@ -960,8 +960,10 @@ handleTimerEvent(PuglWorld* world, XEvent xevent)
for (size_t i = 0; i < world->impl->numTimers; ++i) {
if (world->impl->timers[i].alarm == notify->alarm) {
- const PuglEventTimer ev = {PUGL_TIMER, 0, world->impl->timers[i].id};
- puglDispatchEvent(world->impl->timers[i].view, (const PuglEvent*)&ev);
+ PuglEvent event = {{PUGL_TIMER, 0}};
+ event.timer.id = world->impl->timers[i].id;
+ puglDispatchEvent(world->impl->timers[i].view,
+ (const PuglEvent*)&event);
}
}