aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/translate
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2010-08-16 17:18:14 +0100
committerJosé Fonseca <[email protected]>2010-08-16 17:21:14 +0100
commitded92e5dd8eb39bf2a486a6ce95cbef595149582 (patch)
treee92d5a87f537abb417a7306e09e57621f4c23c3e /src/gallium/auxiliary/translate
parentf945cb651518025159499999527ff5d4536acaf8 (diff)
translate: Eliminate void pointer arithmetic.
Non-portable.
Diffstat (limited to 'src/gallium/auxiliary/translate')
-rw-r--r--src/gallium/auxiliary/translate/translate_generic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/translate/translate_generic.c b/src/gallium/auxiliary/translate/translate_generic.c
index 975f23a6f4c..ad809db720d 100644
--- a/src/gallium/auxiliary/translate/translate_generic.c
+++ b/src/gallium/auxiliary/translate/translate_generic.c
@@ -372,7 +372,7 @@ static ALWAYS_INLINE void PIPE_CDECL generic_run_one( struct translate_generic *
for (attr = 0; attr < nr_attrs; attr++) {
float data[4];
- char *dst = vert + tg->attrib[attr].output_offset;
+ uint8_t *dst = (uint8_t *)vert + tg->attrib[attr].output_offset;
if (tg->attrib[attr].type == TRANSLATE_ELEMENT_NORMAL) {
const uint8_t *src;