changeset 36761:726678f7ce60

vo_dfbmga: fix pointer cast size warnings.
author reimar
date Sun, 16 Feb 2014 15:44:34 +0000
parents 6ec928ab8112
children e788bcd9d49b
files libvo/vo_dfbmga.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_dfbmga.c	Sun Feb 16 15:44:32 2014 +0000
+++ b/libvo/vo_dfbmga.c	Sun Feb 16 15:44:34 2014 +0000
@@ -1289,7 +1289,7 @@
           }
 
           mpi->flags |= MP_IMGFLAG_DIRECT;
-          mpi->priv = (void *) buf;
+          mpi->priv = (void *)(intptr_t)buf;
           current_buf = buf;
 
           return VO_TRUE;
@@ -1306,7 +1306,7 @@
 draw_image( mp_image_t *mpi )
 {
      if (mpi->flags & MP_IMGFLAG_DIRECT) {
-          current_buf = (int) mpi->priv;
+          current_buf = (intptr_t)mpi->priv;
           return VO_TRUE;
      }
      if (mpi->flags & MP_IMGFLAG_DRAW_CALLBACK)