projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ea0aa4
)
mesa: fix void pointer arithmetic warning
author
Brian Paul
<brianp@vmware.com>
Wed, 20 Apr 2011 18:04:25 +0000
(12:04 -0600)
committer
Brian Paul
<brianp@vmware.com>
Wed, 20 Apr 2011 18:04:25 +0000
(12:04 -0600)
src/mesa/main/renderbuffer.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/renderbuffer.c
b/src/mesa/main/renderbuffer.c
index 8b9033f68bf337f884665763b8ae0221f2545c3c..fa884c0de93bea927eb9d7d18f4e21eeaf86803e 100644
(file)
--- 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);
}
}