From daa0f2724d56a4cfc787d33c78cce48f844de587 Mon Sep 17 00:00:00 2001
From: David Robillard <d@drobilla.net>
Date: Thu, 2 Jul 2020 23:13:55 +0200
Subject: Mac: Fix implicit conversion warnings

---
 pugl/detail/mac.m       | 6 +++---
 pugl/detail/mac_cairo.m | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/pugl/detail/mac.m b/pugl/detail/mac.m
index 0c25f04..774cae1 100644
--- a/pugl/detail/mac.m
+++ b/pugl/detail/mac.m
@@ -846,7 +846,7 @@ puglConstraint(id item, NSLayoutAttribute attribute, float constant)
 		                   toItem: nil
 		                attribute: NSLayoutAttributeNotAnAttribute
 		               multiplier: 1.0
-		                 constant: constant];
+		                 constant: (CGFloat)constant];
 }
 
 PuglStatus
@@ -861,8 +861,8 @@ puglRealize(PuglView* view)
 			return PUGL_BAD_CONFIGURATION;
 		}
 
-		const int screenWidthPx  = [screen frame].size.width * scaleFactor;
-		const int screenHeightPx = [screen frame].size.height * scaleFactor;
+		const double screenWidthPx  = [screen frame].size.width * scaleFactor;
+		const double screenHeightPx = [screen frame].size.height * scaleFactor;
 
 		view->frame.width  = view->defaultWidth;
 		view->frame.height = view->defaultHeight;
diff --git a/pugl/detail/mac_cairo.m b/pugl/detail/mac_cairo.m
index ddb82bd..dd7f0b9 100644
--- a/pugl/detail/mac_cairo.m
+++ b/pugl/detail/mac_cairo.m
@@ -115,7 +115,7 @@ puglMacCairoEnter(PuglView* view, const PuglEventExpose* expose)
 	CGContextScaleCTM(context, scale, -scale);
 
 	drawView->surface = cairo_quartz_surface_create_for_cg_context(
-	    context, sizePx.width, sizePx.height);
+		context, (unsigned)sizePx.width, (unsigned)sizePx.height);
 
 	drawView->cr = cairo_create(drawView->surface);
 
-- 
cgit v1.2.1