[MOAB-dev] r1642 - MOAB/trunk/test/h5file
kraftche at mcs.anl.gov
kraftche at mcs.anl.gov
Wed Mar 12 13:04:16 CDT 2008
Author: kraftche
Date: 2008-03-12 13:04:16 -0500 (Wed, 12 Mar 2008)
New Revision: 1642
Modified:
MOAB/trunk/test/h5file/h5file_test.cpp
Log:
fix some warnings
Modified: MOAB/trunk/test/h5file/h5file_test.cpp
===================================================================
--- MOAB/trunk/test/h5file/h5file_test.cpp 2008-03-11 21:57:26 UTC (rev 1641)
+++ MOAB/trunk/test/h5file/h5file_test.cpp 2008-03-12 18:04:16 UTC (rev 1642)
@@ -375,8 +375,8 @@
if (conn1.size() != conn2.size() || conn1.size() == 0)
{
- fprintf(stderr, "Error comparing connectivity: sizes %d and %d\n",
- conn1.size(), conn2.size());
+ fprintf(stderr, "Error comparing connectivity: sizes %lu and %lu\n",
+ (unsigned long)conn1.size(), (unsigned long)conn2.size());
return false;
}
@@ -676,7 +676,7 @@
// check data for integer tag on both dodecahedrons
if (MB_SUCCESS != iface->tag_get_data( tag, dod, 2, idata ))
moab_error( "tag_get_data(itag)" );
- if (idata[0] != 0xDEADBEEF || idata[1] != 0xDEFACED ||
+ if (idata[0] != (int)0xDEADBEEF || idata[1] != (int)0xDEFACED ||
idata[2] != idata[0] || idata[3] != idata[1]) {
fprintf( stderr, "Incorrect values for integer tag data.\n" );
return false;
@@ -859,8 +859,8 @@
if (conn[0].size() != 12 || conn[1].size() != 12)
{
fprintf(stderr, "Expected two dodecahedrons. Got polyhedrons with "
- "%d and %d faces respectively.\n",
- conn[0].size(), conn[1].size() );
+ "%lu and %lu faces respectively.\n",
+ (unsigned long)conn[0].size(), (unsigned long)conn[1].size() );
return false;
}
More information about the moab-dev
mailing list