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 834805e..9a7e90e 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;
 }