Revision: 56027
          http://sourceforge.net/p/brlcad/code/56027
Author:   brlcad
Date:     2013-07-12 19:09:20 +0000 (Fri, 12 Jul 2013)
Log Message:
-----------
we might not care, but implementers of qsort() care, which is what opennurbs 
ultimately ends up passing this callback to.  future We might care too, so 
cover our bases.

Modified Paths:
--------------
    brlcad/trunk/src/libbrep/intersect.cpp

Modified: brlcad/trunk/src/libbrep/intersect.cpp
===================================================================
--- brlcad/trunk/src/libbrep/intersect.cpp      2013-07-12 17:17:56 UTC (rev 
56026)
+++ brlcad/trunk/src/libbrep/intersect.cpp      2013-07-12 19:09:20 UTC (rev 
56027)
@@ -655,11 +655,16 @@
 }
 
 
-int
+static int
 compare_by_m_a0(const ON_X_EVENT* a, const ON_X_EVENT* b)
 {
+    if (a->m_a[0] < b->m_a[0])
+       return -1;
+    if (a->m_a[0] > b->m_a[0])
+       return 1;
+
     // We don't care whether they are equal
-    return a->m_a[0] < b->m_a[0] ? -1 : 1;
+    return 0;
 }
 
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to