[brlcad-commits] SF.net SVN: brlcad:[50990] brlcad/trunk/src/librt/primitives/nmg/nmg_fuse.c
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: <r_...@us...> - 2012-06-07 17:16:08
|
Revision: 50990 http://brlcad.svn.sourceforge.net/brlcad/?rev=50990&view=rev Author: r_weiss Date: 2012-06-07 17:16:01 +0000 (Thu, 07 Jun 2012) Log Message: ----------- Update to file 'nmg_fuse.c' function 'v_ptr_comp' which is used by qsort within function 'nmg_model_edge_fuse'. This change was to correct a potential bug. Modified Paths: -------------- brlcad/trunk/src/librt/primitives/nmg/nmg_fuse.c Modified: brlcad/trunk/src/librt/primitives/nmg/nmg_fuse.c =================================================================== --- brlcad/trunk/src/librt/primitives/nmg/nmg_fuse.c 2012-06-07 17:01:13 UTC (rev 50989) +++ brlcad/trunk/src/librt/primitives/nmg/nmg_fuse.c 2012-06-07 17:16:01 UTC (rev 50990) @@ -1032,9 +1032,10 @@ i = ((size_t *)p1)[1]; j = ((size_t *)p2)[1]; - if (i >= j) { + if (i == j) + return 0; + else if (i > j) return 1; - } return -1; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |