From: Eric Anholt Date: Wed, 1 Jul 2009 05:57:56 +0000 (-0700) Subject: intel: Avoid pointer arithmetic on void *. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5e6b593d35156a0068dc0eb3e55dec086f1cadd3;p=mesa.git intel: Avoid pointer arithmetic on void *. Bug #22000. --- diff --git a/src/mesa/drivers/dri/intel/intel_mipmap_tree.c b/src/mesa/drivers/dri/intel/intel_mipmap_tree.c index a0d8f0c27af..311fe01f294 100644 --- a/src/mesa/drivers/dri/intel/intel_mipmap_tree.c +++ b/src/mesa/drivers/dri/intel/intel_mipmap_tree.c @@ -479,7 +479,7 @@ intel_miptree_image_data(struct intel_context *intel, 0, 0, /* source x, y */ dst->level[level].width, height); /* width, height */ - src += src_image_pitch * dst->cpp; + src = (char *)src + src_image_pitch * dst->cpp; } }