[MOAB-dev] r3315 - MOAB/trunk

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Mon Nov 9 16:53:06 CST 2009


Author: kraftche
Date: 2009-11-09 16:53:06 -0600 (Mon, 09 Nov 2009)
New Revision: 3315

Modified:
   MOAB/trunk/MBCN.cpp
Log:
fix warning

Modified: MOAB/trunk/MBCN.cpp
===================================================================
--- MOAB/trunk/MBCN.cpp	2009-11-09 22:52:10 UTC (rev 3314)
+++ MOAB/trunk/MBCN.cpp	2009-11-09 22:53:06 UTC (rev 3315)
@@ -227,7 +227,7 @@
 {
   int parent_num_verts = MBCN::VerticesPerEntity(parent_type);
   int side_indices[8]; 
-  assert(sizeof(side_indices)/sizeof(side_indices[0]) <= child_num_verts);
+  assert(sizeof(side_indices)/sizeof(side_indices[0]) <= (size_t)child_num_verts);
   
   for (int i = 0; i < child_num_verts; i++) {
     side_indices[i] = std::find(parent_conn, parent_conn+parent_num_verts, child_conn[i]) - parent_conn;



More information about the moab-dev mailing list