From 27322eeb733ee4b39495ad11a5734cc2bf72c53c Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sun, 18 Apr 2010 08:41:51 -0600 Subject: [PATCH] nvfx: fix void * arithmetic warning --- src/gallium/drivers/nvfx/nvfx_vbo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2