From: Brian Date: Fri, 7 Dec 2007 14:48:33 +0000 (-0700) Subject: silence void ptr arithmetic warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b9300f16c40e1fecf6237ca06888e42da85c55b5;p=mesa.git silence void ptr arithmetic warning --- diff --git a/src/mesa/pipe/p_inlines.h b/src/mesa/pipe/p_inlines.h index 1697284b049..e7303c45c1b 100644 --- a/src/mesa/pipe/p_inlines.h +++ b/src/mesa/pipe/p_inlines.h @@ -37,11 +37,12 @@ static INLINE ubyte * pipe_surface_map(struct pipe_surface *surface) { if (!surface->map_refcount++) { - surface->map = surface->winsys->buffer_map( surface->winsys, + surface->map + = (ubyte *) surface->winsys->buffer_map( surface->winsys, surface->buffer, PIPE_BUFFER_FLAG_WRITE | PIPE_BUFFER_FLAG_READ ) - + surface->offset; + + surface->offset; } return surface->map;