From bca65c93cd0228d408e0b6029b33da6449a5b567 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 28 Jan 2018 12:08:40 +0100 Subject: Consistently use uint32_t everywhere --- pugl/pugl_x11.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pugl/pugl_x11.c') diff --git a/pugl/pugl_x11.c b/pugl/pugl_x11.c index 6315759..6563805 100644 --- a/pugl/pugl_x11.c +++ b/pugl/pugl_x11.c @@ -275,10 +275,10 @@ translateKey(PuglView* view, XEvent* xevent, PuglEvent* event) event->key.keycode = xevent->xkey.keycode; } -static unsigned +static uint32_t translateModifiers(unsigned xstate) { - unsigned state = 0; + uint32_t state = 0; state |= (xstate & ShiftMask) ? PUGL_MOD_SHIFT : 0; state |= (xstate & ControlMask) ? PUGL_MOD_CTRL : 0; state |= (xstate & Mod1Mask) ? PUGL_MOD_ALT : 0; -- cgit v1.2.1