From ce0ff266e988bf605e27ae8c393a7f74b2763d53 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 30 Jul 2014 07:30:18 +1000 Subject: GHash: generic comparison for int[4] --- source/blender/bmesh/tools/bmesh_beautify.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source/blender/bmesh/tools/bmesh_beautify.c') diff --git a/source/blender/bmesh/tools/bmesh_beautify.c b/source/blender/bmesh/tools/bmesh_beautify.c index b9bd7a381be..6639e767e77 100644 --- a/source/blender/bmesh/tools/bmesh_beautify.c +++ b/source/blender/bmesh/tools/bmesh_beautify.c @@ -67,6 +67,7 @@ static unsigned int erot_gsetutil_hash(const void *ptr) return BLI_ghashutil_inthash_v4(&e_state->v1); } #endif +#if 0 static int erot_gsetutil_cmp(const void *a, const void *b) { const EdRotState *e_state_a = (const EdRotState *)a; @@ -81,10 +82,10 @@ static int erot_gsetutil_cmp(const void *a, const void *b) else if (e_state_a->f2 > e_state_b->f2) return 1; else return 0; } - +#endif static GSet *erot_gset_new(void) { - return BLI_gset_new(BLI_ghashutil_inthash_v4_p, erot_gsetutil_cmp, __func__); + return BLI_gset_new(BLI_ghashutil_inthash_v4_p, BLI_ghashutil_inthash_v4_cmp, __func__); } /* ensure v0 is smaller */ -- cgit v1.2.3