summaryrefslogtreecommitdiffstats
path: root/DOCS
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2014-10-05 15:22:17 +0200
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2014-10-05 15:22:17 +0200
commit79688144704dd93169d86cc5a75385604e88c72c (patch)
treebcdc533a769bed94c49015c14a13aa6c7994d20a /DOCS
parentc8ed4736ef6ffd58d2cf8b10317ff26d7424dfa2 (diff)
downloadmpv-79688144704dd93169d86cc5a75385604e88c72c.tar.bz2
mpv-79688144704dd93169d86cc5a75385604e88c72c.tar.xz
cocoa: fix some pointer casts to be 32bit safe
credits: wm4
Diffstat (limited to 'DOCS')
-rw-r--r--DOCS/client_api_examples/cocoabasic.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/DOCS/client_api_examples/cocoabasic.m b/DOCS/client_api_examples/cocoabasic.m
index 66a9ff8f7e..5c1a89bc2e 100644
--- a/DOCS/client_api_examples/cocoabasic.m
+++ b/DOCS/client_api_examples/cocoabasic.m
@@ -82,7 +82,7 @@ static void wakeup(void *);
}
#if EMBED_VIEW
- uintptr_t wid = (uintptr_t)self->w;
+ int64_t wid = (intptr_t) self->w;
check_error(mpv_set_option(mpv, "wid", MPV_FORMAT_INT64, &wid));
#endif