[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [37118] branches/soc-2011-onion/source/ blender/blenlib/intern/pbvh.c: Added note, MSVC warning in pbvh.c line 314: warning C4146: unary minus operator applied to unsigned type, result still unsigned

Jason Wilkins Jason.A.Wilkins at gmail.com
Fri Jun 3 13:57:03 CEST 2011


Revision: 37118
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=37118
Author:   jwilkins
Date:     2011-06-03 11:57:03 +0000 (Fri, 03 Jun 2011)
Log Message:
-----------
Added note, MSVC warning in pbvh.c line 314:  warning C4146: unary minus operator applied to unsigned type, result still unsigned

Modified Paths:
--------------
    branches/soc-2011-onion/source/blender/blenlib/intern/pbvh.c

Modified: branches/soc-2011-onion/source/blender/blenlib/intern/pbvh.c
===================================================================
--- branches/soc-2011-onion/source/blender/blenlib/intern/pbvh.c	2011-06-03 07:53:55 UTC (rev 37117)
+++ branches/soc-2011-onion/source/blender/blenlib/intern/pbvh.c	2011-06-03 11:57:03 UTC (rev 37118)
@@ -311,7 +311,7 @@
 
 	if(!BLI_ghash_haskey(map, key)) {
 		if(BLI_bitmap_get(bvh->vert_bitmap, vertex)) {
-			value = SET_INT_IN_POINTER(-(*face_verts) - 1);
+			value = SET_INT_IN_POINTER(-(*face_verts) - 1); // XXX: MSVC says, warning C4146: unary minus operator applied to unsigned type, result still unsigned
 			++(*face_verts);
 		}
 		else {




More information about the Bf-blender-cvs mailing list