i965g: avoid void * arithmetic
authorRoland Scheidegger <sroland@vmware.com>
Mon, 10 May 2010 15:40:44 +0000 (17:40 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Mon, 10 May 2010 15:40:44 +0000 (17:40 +0200)
src/gallium/winsys/i965/drm/i965_drm_buffer.c

index 33a1749..fb5e50c 100644 (file)
@@ -463,7 +463,7 @@ i965_libdrm_bo_flush_range(struct brw_winsys_buffer *buffer,
       brw_dump_data( idws->id,
                     buf->data_type,
                     buf->bo->offset + offset, 
-                    buf->bo->virtual + offset, 
+                    (char*)buf->bo->virtual + offset, 
                     length );
 }