From: Brian Paul Date: Sun, 18 Apr 2010 14:41:51 +0000 (-0600) Subject: nvfx: fix void * arithmetic warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=27322eeb733ee4b39495ad11a5734cc2bf72c53c;p=mesa.git nvfx: fix void * arithmetic warning --- diff --git a/src/gallium/drivers/nvfx/nvfx_vbo.c b/src/gallium/drivers/nvfx/nvfx_vbo.c index 5ffbdfcb2a6..0ebeadc870d 100644 --- a/src/gallium/drivers/nvfx/nvfx_vbo.c +++ b/src/gallium/drivers/nvfx/nvfx_vbo.c @@ -124,7 +124,7 @@ nvfx_vbo_static_attrib(struct nvfx_context *nvfx, void *map; map = pipe_buffer_map(&nvfx->pipe, vb->buffer, PIPE_TRANSFER_READ, &transfer); - map += vb->buffer_offset + ve->src_offset; + map = (uint8_t *) map + vb->buffer_offset + ve->src_offset; float *v = map;