i915: Eliminate void pointer arithmetic.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Sat, 31 May 2008 09:08:24 +0000 (18:08 +0900)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Sat, 31 May 2008 09:55:40 +0000 (18:55 +0900)
src/gallium/drivers/i915simple/i915_prim_vbuf.c

index faf5971abbbd68b341ae55b18ec83f274c66f0e2..cdbb5feb232123a18dea016c6483b55a437ed856 100644 (file)
@@ -142,7 +142,7 @@ i915_vbuf_render_allocate_vertices( struct vbuf_render *render,
    i915->vbo_offset = i915_render->vbo_offset;
    i915->dirty |= I915_NEW_VBO;
 
-   return i915_render->vbo_ptr + i915->vbo_offset;
+   return (unsigned char *)i915_render->vbo_ptr + i915->vbo_offset;
 }