summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2009-06-30 22:57:56 -0700
committerEric Anholt <eric@anholt.net>2009-06-30 22:57:56 -0700
commit5e6b593d35156a0068dc0eb3e55dec086f1cadd3 (patch)
tree16f6b9111cc40c96cadb3d0841d8f0792a5e296c /src/mesa
parentc3499f6c66bf93d7752ea70a13bbbab3d2b2c288 (diff)
intel: Avoid pointer arithmetic on void *.
Bug #22000.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/intel/intel_mipmap_tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_mipmap_tree.c b/src/mesa/drivers/dri/intel/intel_mipmap_tree.c
index a0d8f0c27a..311fe01f29 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;
}
}