From: Jakob Bornecrantz Date: Sun, 20 Feb 2011 10:46:50 +0000 (+0100) Subject: i915g: Fix void ptr arith X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=20ff6a27522aa4b08d3c43dd509bc28b2b569c2d;p=mesa.git i915g: Fix void ptr arith --- diff --git a/src/gallium/winsys/i915/sw/i915_sw_buffer.c b/src/gallium/winsys/i915/sw/i915_sw_buffer.c index 834805e621d..9a7e90e2173 100644 --- a/src/gallium/winsys/i915/sw/i915_sw_buffer.c +++ b/src/gallium/winsys/i915/sw/i915_sw_buffer.c @@ -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; }