diff options
author | Eric Anholt <[email protected]> | 2009-06-30 22:57:56 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2009-06-30 22:57:56 -0700 |
commit | 5e6b593d35156a0068dc0eb3e55dec086f1cadd3 (patch) | |
tree | 16f6b9111cc40c96cadb3d0841d8f0792a5e296c /src/mesa/drivers | |
parent | c3499f6c66bf93d7752ea70a13bbbab3d2b2c288 (diff) |
intel: Avoid pointer arithmetic on void *.
Bug #22000.
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_mipmap_tree.c | 2 |
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 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; } } |