[Bf-blender-cvs] [a25577433c5] soc-2017-sculpting_improvements: Compiler pointer arithmetic fix.

Sebastian Witt noreply at git.blender.org
Sun Aug 20 16:50:21 CEST 2017


Commit: a25577433c554fcfad1c9be33021219da514e6e0
Author: Sebastian Witt
Date:   Sun Aug 20 16:49:44 2017 +0200
Branches: soc-2017-sculpting_improvements
https://developer.blender.org/rBa25577433c554fcfad1c9be33021219da514e6e0

Compiler pointer arithmetic fix.

===================================================================

M	source/blender/editors/sculpt_paint/sculpt.c

===================================================================

diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index 288af1668b1..45219f0d646 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -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);



More information about the Bf-blender-cvs mailing list