summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5diff.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lib/h5diff.c')
-rw-r--r--tools/lib/h5diff.c32
1 files changed, 15 insertions, 17 deletions
diff --git a/tools/lib/h5diff.c b/tools/lib/h5diff.c
index f0c6048..df479de 100644
--- a/tools/lib/h5diff.c
+++ b/tools/lib/h5diff.c
@@ -450,33 +450,31 @@ hsize_t diff_match(hid_t file1_id,
/*-------------------------------------------------------------------------
- * contents mode. we do an "absolute" compare criteria, the number of objects
+ * the number of objects
* in file1 must be the same as in file2
*-------------------------------------------------------------------------
*/
- if ( options->m_contents )
+
+ /* assume equal contents initially */
+ options->contents = 1;
+
+ /* number of different objects */
+ if ( info1->nused != info2->nused )
{
- /* assume equal contents initially */
- options->contents = 1;
-
- /* number of different objects */
- if ( info1->nused != info2->nused )
+ options->contents = 0;
+ }
+
+
+ for( i = 0; i < table->nobjs; i++)
+ {
+ if( table->objs[i].flags[0] != table->objs[i].flags[1] )
{
options->contents = 0;
}
-
-
- for( i = 0; i < table->nobjs; i++)
- {
- if( table->objs[i].flags[0] != table->objs[i].flags[1] )
- {
- options->contents = 0;
- }
- }
-
}
+
/*-------------------------------------------------------------------------
* do the diff for common objects
*-------------------------------------------------------------------------