From 6f24133e291ccd784db38fed57d32c10f8c8cf7b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 2 Mar 2020 23:25:53 +0100 Subject: Strengthen ultra-strict warnings with clang --- pugl/pugl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pugl/pugl.h') diff --git a/pugl/pugl.h b/pugl/pugl.h index b5b6d25..ce64698 100644 --- a/pugl/pugl.h +++ b/pugl/pugl.h @@ -652,7 +652,7 @@ puglSetAspectRatio(PuglView* view, int minX, int minY, int maxX, int maxY); On OSX, this is an NSView*. On Windows, this is a HWND. */ -typedef intptr_t PuglNativeWindow; +typedef uintptr_t PuglNativeWindow; /** Set the title of the window. @@ -1018,7 +1018,7 @@ puglInitWindowParent(PuglView* view, PuglNativeWindow parent) static inline PUGL_DEPRECATED_BY("puglSetBackend") int puglInitBackend(PuglView* view, const PuglBackend* backend) { - return puglSetBackend(view, backend); + return (int)puglSetBackend(view, backend); } /** -- cgit v1.2.1