silence void ptr arithmetic warning
authorBrian <brian.paul@tungstengraphics.com>
Fri, 7 Dec 2007 14:48:33 +0000 (07:48 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Fri, 7 Dec 2007 14:48:33 +0000 (07:48 -0700)
src/mesa/pipe/p_inlines.h

index 1697284b049045464bf6dcded780ae65b525926b..e7303c45c1b4fe5e2c360d0a6dc9d91870d6511d 100644 (file)
@@ -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;