summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-12-07 07:48:33 -0700
committerBen Skeggs <skeggsb@gmail.com>2007-12-09 12:05:26 +1100
commita775689036fc86ea2cfaf529fba6c368fa6d3502 (patch)
tree24e2fbfaa05c76cafbce07fec009418b5acbf5f4 /src
parent0a44a3fa2f9eb295106cd4c64549f55cc54f432f (diff)
silence void ptr arithmetic warning
Diffstat (limited to 'src')
-rw-r--r--src/mesa/pipe/p_inlines.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/pipe/p_inlines.h b/src/mesa/pipe/p_inlines.h
index 1697284b04..e7303c45c1 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;