Compiler pointer arithmetic fix.
authorSebastian Witt <sebastian.witt@rwth-aachen.de>
Sun, 20 Aug 2017 14:49:44 +0000 (16:49 +0200)
committerSebastian Witt <sebastian.witt@rwth-aachen.de>
Sun, 20 Aug 2017 14:49:44 +0000 (16:49 +0200)
source/blender/editors/sculpt_paint/sculpt.c

index 288af1668b16a33fb27c007e10849791b3cdabc3..45219f0d646d6f8c59c95803134dc9a77391ef40 100644 (file)
@@ -8570,7 +8570,7 @@ static void CustomData_copy_partial(const struct CustomData *source, struct Cust
                        for (int i = 0; i < tot_elem; i++) {
                                if(redirect_map[i] != -1) {
                                        d_size = CustomData_sizeof(curr_l->type);
-                                       memcpy((char *)(dest_l->data) + redirect_map[i] * d_size, curr_l->data + i * d_size, d_size);
+                                       memcpy(((char *)dest_l->data) + redirect_map[i] * d_size, ((char* )curr_l->data) + i * d_size, d_size);
                                }
                        }
                        name = cd_type_name(curr_l->type);