aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/pugl.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-03-02 23:25:53 +0100
committerDavid Robillard <d@drobilla.net>2020-03-02 23:25:53 +0100
commit6f24133e291ccd784db38fed57d32c10f8c8cf7b (patch)
tree8f55a0f1a86c88ec64f6b0c158f4b77ba2c54fef /pugl/pugl.h
parent1512dce0b223b5c17b43e6785fa5d988a95b49d4 (diff)
downloadpugl-6f24133e291ccd784db38fed57d32c10f8c8cf7b.tar.gz
pugl-6f24133e291ccd784db38fed57d32c10f8c8cf7b.tar.bz2
pugl-6f24133e291ccd784db38fed57d32c10f8c8cf7b.zip
Strengthen ultra-strict warnings with clang
Diffstat (limited to 'pugl/pugl.h')
-rw-r--r--pugl/pugl.h4
1 files changed, 2 insertions, 2 deletions
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);
}
/**