summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeif Delgass <ldelgass@users.sourceforge.net>2003-01-26 22:25:35 +0000
committerLeif Delgass <ldelgass@users.sourceforge.net>2003-01-26 22:25:35 +0000
commit9b9b099471580616e1685bae725f2c297179ae99 (patch)
treea6f1b3f864e35400ade8e43cafe2145dd92578c0
parent66f57c403c012f55126817bc21d40346d29d2d35 (diff)
Add cast to avoid void * arithmetic warningmesa-4-0-4-20030129
-rw-r--r--shared-core/radeon_state.c2
-rw-r--r--shared/radeon_state.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/shared-core/radeon_state.c b/shared-core/radeon_state.c
index 1fe007b30..4211b2330 100644
--- a/shared-core/radeon_state.c
+++ b/shared-core/radeon_state.c
@@ -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 ) {
diff --git a/shared/radeon_state.c b/shared/radeon_state.c
index 1fe007b30..4211b2330 100644
--- a/shared/radeon_state.c
+++ b/shared/radeon_state.c
@@ -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 ) {