[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [39337] branches/soc-2011-onion/source/ blender/editors/sculpt_paint/paint_uv.c: quieted warning by using SET_INT_IN_POINTER to use integer as key for ghash

Jason Wilkins Jason.A.Wilkins at gmail.com
Fri Aug 12 16:57:20 CEST 2011


Revision: 39337
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=39337
Author:   jwilkins
Date:     2011-08-12 14:57:19 +0000 (Fri, 12 Aug 2011)
Log Message:
-----------
quieted warning by using SET_INT_IN_POINTER to use integer as key for ghash

Modified Paths:
--------------
    branches/soc-2011-onion/source/blender/editors/sculpt_paint/paint_uv.c

Modified: branches/soc-2011-onion/source/blender/editors/sculpt_paint/paint_uv.c
===================================================================
--- branches/soc-2011-onion/source/blender/editors/sculpt_paint/paint_uv.c	2011-08-12 14:55:44 UTC (rev 39336)
+++ branches/soc-2011-onion/source/blender/editors/sculpt_paint/paint_uv.c	2011-08-12 14:57:19 UTC (rev 39337)
@@ -424,7 +424,9 @@
 
 static unsigned int	uv_edge_hash(const void *key){
 	UvAdjacencyEdge *edge = (UvAdjacencyEdge *)key;
-	return BLI_ghashutil_inthash(edge->uv2) + BLI_ghashutil_inthash(edge->uv1);
+	return 
+		BLI_ghashutil_inthash(SET_INT_IN_POINTER(edge->uv2)) +
+		BLI_ghashutil_inthash(SET_INT_IN_POINTER(edge->uv1));
 }
 
 static int uv_edge_compare(const void *a, const void *b){




More information about the Bf-blender-cvs mailing list