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 33a17496b2b188a407a430e63f67e903ede9d445..fb5e50ce810c386c39d78790d01a84eb384ca7f3 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 );
 }