From: José Fonseca Date: Sat, 31 May 2008 09:08:24 +0000 (+0900) Subject: i915: Eliminate void pointer arithmetic. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=45b2c23d7a2f1bd723d0719b13470125de09c243;p=mesa.git i915: Eliminate void pointer arithmetic. --- diff --git a/src/gallium/drivers/i915simple/i915_prim_vbuf.c b/src/gallium/drivers/i915simple/i915_prim_vbuf.c index faf5971abbb..cdbb5feb232 100644 --- a/src/gallium/drivers/i915simple/i915_prim_vbuf.c +++ b/src/gallium/drivers/i915simple/i915_prim_vbuf.c @@ -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; }