diff options
author | Leif Delgass <ldelgass@users.sourceforge.net> | 2003-01-26 22:24:20 +0000 |
---|---|---|
committer | Leif Delgass <ldelgass@users.sourceforge.net> | 2003-01-26 22:24:20 +0000 |
commit | 204936f4c77d8c9d40fc3c2869d1ac3bd27a6a72 (patch) | |
tree | 307a078c125f4504f206a5c80d8aa42f1c6f87c8 | |
parent | 4fe8f236902a2cf5d789f98258e987f7b827e5b5 (diff) |
Add cast to avoid void * arithmetic warning
-rw-r--r-- | shared-core/radeon_state.c | 2 | ||||
-rw-r--r-- | shared/radeon_state.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/shared-core/radeon_state.c b/shared-core/radeon_state.c index 1fe007b3..4211b233 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 1fe007b3..4211b233 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 ) { |