From: Leif Delgass Date: Sun, 26 Jan 2003 22:25:35 +0000 (+0000) Subject: Add cast to avoid void * arithmetic warning X-Git-Tag: submit/1.0/20121108.012404~2430 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9b9b099471580616e1685bae725f2c297179ae99;p=profile%2Fivi%2Flibdrm.git Add cast to avoid void * arithmetic warning --- diff --git a/shared-core/radeon_state.c b/shared-core/radeon_state.c index 1fe007b..4211b23 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 1fe007b..4211b23 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 ) {