From 5e6b593d35156a0068dc0eb3e55dec086f1cadd3 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 30 Jun 2009 22:57:56 -0700 Subject: [PATCH] intel: Avoid pointer arithmetic on void *. Bug #22000. --- src/mesa/drivers/dri/intel/intel_mipmap_tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- 2.30.2