translate: Eliminate void pointer arithmetic.
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 16 Aug 2010 16:18:14 +0000 (17:18 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 16 Aug 2010 16:21:14 +0000 (17:21 +0100)
Non-portable.

src/gallium/auxiliary/translate/translate_generic.c

index 975f23a6f4c8d7f6dcee3d6fedd6e83947f84384..ad809db720d4b485d7c1b9ee55edb4ca678f31cf 100644 (file)
@@ -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;