[MOAB-dev] r3096 - MOAB/trunk

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Sat Aug 8 08:47:29 CDT 2009


Author: kraftche
Date: 2009-08-08 08:47:29 -0500 (Sat, 08 Aug 2009)
New Revision: 3096

Modified:
   MOAB/trunk/kd_tree_test.cpp
Log:
fix failing test for release builds (stupid mistake when fixing warnings yesterday)

Modified: MOAB/trunk/kd_tree_test.cpp
===================================================================
--- MOAB/trunk/kd_tree_test.cpp	2009-08-07 23:44:09 UTC (rev 3095)
+++ MOAB/trunk/kd_tree_test.cpp	2009-08-08 13:47:29 UTC (rev 3096)
@@ -12,7 +12,7 @@
 #include <stdlib.h>
 #ifdef NDEBUG
 #  undef assert
-#  define assert(A) do { if (A) abort(); } while(false)
+#  define assert(A) do { if (!(A)) abort(); } while(false)
 #endif
 
 const unsigned INTERVALS = 4;



More information about the moab-dev mailing list