[Bf-blender-cvs] [77af624] master: Quiet warning on 32bit system

Campbell Barton noreply at git.blender.org
Mon Oct 6 09:51:52 CEST 2014


Commit: 77af624524795fe6c6e50242adfe0da243f3c747
Author: Campbell Barton
Date:   Mon Oct 6 09:50:20 2014 +0200
Branches: master
https://developer.blender.org/rB77af624524795fe6c6e50242adfe0da243f3c747

Quiet warning on 32bit system

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

M	source/blender/bmesh/tools/bmesh_region_match.c

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

diff --git a/source/blender/bmesh/tools/bmesh_region_match.c b/source/blender/bmesh/tools/bmesh_region_match.c
index 224e9a1..050d5ae 100644
--- a/source/blender/bmesh/tools/bmesh_region_match.c
+++ b/source/blender/bmesh/tools/bmesh_region_match.c
@@ -993,14 +993,14 @@ static SUID_Int bm_face_region_vert_boundary_id(BMVert *v)
 #define PRIME_VERT_MID_A    103
 #define PRIME_VERT_MID_B    131
 
-	unsigned int tot = 0;
+	int tot = 0;
 	BMIter iter;
 	BMLoop *l;
 	SUID_Int id = PRIME_VERT_MID_A;
 
 	BM_ITER_ELEM (l, &iter, v, BM_LOOPS_OF_VERT) {
 		const bool is_boundary_vert = (bm_edge_is_region_boundary(l->e) || bm_edge_is_region_boundary(l->prev->e));
-		id ^= (unsigned int)l->f->len * (is_boundary_vert ? PRIME_VERT_SMALL_A : PRIME_VERT_SMALL_B);
+		id ^= l->f->len * (is_boundary_vert ? PRIME_VERT_SMALL_A : PRIME_VERT_SMALL_B);
 		tot += 1;
 	}




More information about the Bf-blender-cvs mailing list