i915g: Fix void ptr arith
authorJakob Bornecrantz <wallbraker@gmail.com>
Sun, 20 Feb 2011 10:46:50 +0000 (11:46 +0100)
committerJakob Bornecrantz <wallbraker@gmail.com>
Sun, 20 Feb 2011 23:50:16 +0000 (00:50 +0100)
src/gallium/winsys/i915/sw/i915_sw_buffer.c

index 834805e621df2ab1c7000e6bb9fb7f8d54115c1c..9a7e90e2173509f9f6e0b2c1da13eeb40c4d64a5 100644 (file)
@@ -84,7 +84,7 @@ i915_sw_buffer_write(struct i915_winsys *iws,
 {
    struct i915_sw_buffer *buf = i915_sw_buffer(buffer);
 
-   memcpy(buf->ptr + offset, data, size);
+   memcpy((char*)buf->ptr + offset, data, size);
    return 0;
 }