Add cast to avoid void * arithmetic warning
authorLeif Delgass <ldelgass@users.sourceforge.net>
Sun, 26 Jan 2003 22:25:35 +0000 (22:25 +0000)
committerLeif Delgass <ldelgass@users.sourceforge.net>
Sun, 26 Jan 2003 22:25:35 +0000 (22:25 +0000)
shared-core/radeon_state.c
shared/radeon_state.c

index 1fe007b..4211b23 100644 (file)
@@ -1159,7 +1159,7 @@ static int radeon_cp_dispatch_texture( drm_device_t *dev,
                /* Update the input parameters for next time */
                image->y += height;
                image->height -= height;
-               image->data += size;
+               image->data = (const u8 *)image->data + size;
 
                buf = radeon_freelist_get( dev );
                if ( 0 && !buf ) {
index 1fe007b..4211b23 100644 (file)
@@ -1159,7 +1159,7 @@ static int radeon_cp_dispatch_texture( drm_device_t *dev,
                /* Update the input parameters for next time */
                image->y += height;
                image->height -= height;
-               image->data += size;
+               image->data = (const u8 *)image->data + size;
 
                buf = radeon_freelist_get( dev );
                if ( 0 && !buf ) {