Revision: 42464
http://brlcad.svn.sourceforge.net/brlcad/?rev=42464&view=rev
Author: brlcad
Date: 2011-01-19 21:52:24 +0000 (Wed, 19 Jan 2011)
Log Message:
-----------
the typecompare() callback passed to bsearch() needs to return value <0, ==0,
>0 depending on the comparison, not just a boolean. use bu_strcmp() instead of
!BU_STR_EQUAL()
Modified Paths:
--------------
brlcad/trunk/src/libged/search.c
Modified: brlcad/trunk/src/libged/search.c
===================================================================
--- brlcad/trunk/src/libged/search.c 2011-01-19 21:34:34 UTC (rev 42463)
+++ brlcad/trunk/src/libged/search.c 2011-01-19 21:52:24 UTC (rev 42464)
@@ -1544,7 +1544,7 @@
int
typecompare(const void *a, const void *b)
{
- return !BU_STR_EQUAL(((OPTION *)a)->name, ((OPTION *)b)->name);
+ return bu_strcmp(((OPTION *)a)->name, ((OPTION *)b)->name);
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits