intel: Avoid pointer arithmetic on void *.
authorEric Anholt <eric@anholt.net>
Wed, 1 Jul 2009 05:57:56 +0000 (22:57 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 1 Jul 2009 05:57:56 +0000 (22:57 -0700)
Bug #22000.

src/mesa/drivers/dri/intel/intel_mipmap_tree.c

index a0d8f0c27af11f93aab40062cd9903fd06c5f641..311fe01f29439e7757def23c405a43f262b9beef 100644 (file)
@@ -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;
    }
 }