nvfx: fix void * arithmetic warning
authorBrian Paul <brianp@vmware.com>
Sun, 18 Apr 2010 14:41:51 +0000 (08:41 -0600)
committerBrian Paul <brianp@vmware.com>
Sun, 18 Apr 2010 14:41:51 +0000 (08:41 -0600)
src/gallium/drivers/nvfx/nvfx_vbo.c

index 5ffbdfcb2a65f3a8c2b85a74bcd861c8ca058a30..0ebeadc870d9e7af39bd2ace2ab22375768d8c98 100644 (file)
@@ -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;