[Bf-committers] [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
Daniel Salazar - 3Developer.com
zanqdo at gmail.com
Fri Aug 12 23:10:42 CEST 2011
http://www.pasteall.org/23972
I'm getting this
cheers
Daniel Salazar
3Developer.com
On Fri, Aug 12, 2011 at 8:57 AM, Jason Wilkins
<Jason.A.Wilkins at gmail.com> wrote:
> 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){
>
> _______________________________________________
> Bf-blender-cvs mailing list
> Bf-blender-cvs at blender.org
> http://lists.blender.org/mailman/listinfo/bf-blender-cvs
>
More information about the Bf-committers
mailing list