[Mesa-dev] [PATCH 1/2] winsys/sw/dri: silence void pointer arithmetic warning
Brian Paul
brianp at vmware.com
Mon Aug 4 12:16:20 PDT 2014
---
src/gallium/winsys/sw/dri/dri_sw_winsys.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/gallium/winsys/sw/dri/dri_sw_winsys.c b/src/gallium/winsys/sw/dri/dri_sw_winsys.c
index 6fed22b..24d6308 100644
--- a/src/gallium/winsys/sw/dri/dri_sw_winsys.c
+++ b/src/gallium/winsys/sw/dri/dri_sw_winsys.c
@@ -185,7 +185,8 @@ dri_sw_displaytarget_display(struct sw_winsys *ws,
if (box) {
void *data;
- data = dri_sw_dt->data + (dri_sw_dt->stride * box->y) + box->x * blsize;
+ data = (char *) dri_sw_dt->data
+ + (dri_sw_dt->stride * box->y) + box->x * blsize;
dri_sw_ws->lf->put_image2(dri_drawable, data,
box->x, box->y, box->width, box->height, dri_sw_dt->stride);
} else {
--
1.7.10.4
More information about the mesa-dev
mailing list