[MOAB-dev] r3305 - MOAB/trunk

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Sat Nov 7 10:51:10 CST 2009


Author: kraftche
Date: 2009-11-07 10:51:10 -0600 (Sat, 07 Nov 2009)
New Revision: 3305

Modified:
   MOAB/trunk/TagTest.cpp
Log:
fix test build issue with g++ 4.3 when sizeof(MBEntityHandle) != sizeof(void*)

Modified: MOAB/trunk/TagTest.cpp
===================================================================
--- MOAB/trunk/TagTest.cpp	2009-11-07 04:34:51 UTC (rev 3304)
+++ MOAB/trunk/TagTest.cpp	2009-11-07 16:51:10 UTC (rev 3305)
@@ -1599,7 +1599,7 @@
   MBRange verts;
   rval = mb.create_vertices( &coords[0], coords.size()/3, verts );
   CHECK_ERR( rval );
-  CHECK_EQUAL( coords.size()/3, verts.size() );
+  CHECK_EQUAL( coords.size()/3, (size_t)verts.size() );
     // create one edge, which we should never get back from 
     // our queries with type == MBVERTEX
   MBEntityHandle edge, ends[] = { verts.front(), verts.back() };
@@ -1662,7 +1662,7 @@
   ptrs[0] = &default_sparse;
   rval = mb.get_entities_by_type_and_tag( 0, MBVERTEX, &tag_sparse, ptrs, 1, result, MBInterface::INTERSECT );
   CHECK_ERR(rval);
-  CHECK_EQUAL( (size_t)1, result.size() );
+  CHECK_EQUAL( (MBEntityHandle)1, result.size() );
   CHECK_EQUAL( sets[1].front(), result.front() );
   
   



More information about the moab-dev mailing list