From 42d377224af0fcf5a21269958ce5f96c4306c4fa Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 20 Apr 2011 12:04:25 -0600 Subject: mesa: fix void pointer arithmetic warning --- src/mesa/main/renderbuffer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mesa/main/renderbuffer.c') 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); } } -- cgit v1.2.3