From: Brian Paul Date: Wed, 20 Apr 2011 18:04:25 +0000 (-0600) Subject: mesa: fix void pointer arithmetic warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=42d377224af0fcf5a21269958ce5f96c4306c4fa;p=mesa.git mesa: fix void pointer arithmetic warning --- diff --git a/src/mesa/main/renderbuffer.c b/src/mesa/main/renderbuffer.c index 8b9033f68bf..fa884c0de93 100644 --- a/src/mesa/main/renderbuffer.c +++ b/src/mesa/main/renderbuffer.c @@ -125,8 +125,8 @@ get_values_generic(struct gl_context *ctx, struct gl_renderbuffer *rb, for (i = 0; i < count; i++) { const void *src = rb->GetPointer(ctx, rb, x[i], y[i]); - - memcpy(values + i * format_bytes, src, format_bytes); + char *dst = (char *) values + i * format_bytes; + memcpy(dst, src, format_bytes); } }