From 665dfdd7c5689838c6cef0406b2b4197383c24e5 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 23 Jul 2017 10:50:10 +0200 Subject: Fix implicit integer conversion warning --- pugl/pugl_osx.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pugl/pugl_osx.m b/pugl/pugl_osx.m index a9e34f0..c087a1c 100644 --- a/pugl/pugl_osx.m +++ b/pugl/pugl_osx.m @@ -359,7 +359,7 @@ keySymToSpecial(PuglView* view, NSEvent* ev) rloc.x, [[NSScreen mainScreen] frame].size.height - rloc.y, getModifiers(puglview, event), - [event buttonNumber] + 1 + (unsigned)[event buttonNumber] + 1 }; puglDispatchEvent(puglview, (PuglEvent*)&ev); } @@ -378,7 +378,7 @@ keySymToSpecial(PuglView* view, NSEvent* ev) rloc.x, [[NSScreen mainScreen] frame].size.height - rloc.y, getModifiers(puglview, event), - [event buttonNumber] + 1 + (unsigned)[event buttonNumber] + 1 }; puglDispatchEvent(puglview, (PuglEvent*)&ev); [self updateTrackingAreas]; -- cgit v1.2.1