diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2017-09-06 17:36:26 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2017-09-06 17:36:26 (GMT) |
commit | 0b070ae114172588756d2c8732ccb7c89eb08ab6 (patch) | |
tree | bc63dbf62358e0f49460c59bf77e32a031045d3c /tools/lib/h5diff_util.c | |
parent | a57f039a6aae04b8f91955e92ddbaa74cc78fc2b (diff) | |
download | hdf5-0b070ae114172588756d2c8732ccb7c89eb08ab6.zip hdf5-0b070ae114172588756d2c8732ccb7c89eb08ab6.tar.gz hdf5-0b070ae114172588756d2c8732ccb7c89eb08ab6.tar.bz2 |
HDFFV-10282 refactor out assert calls in tools
Diffstat (limited to 'tools/lib/h5diff_util.c')
-rw-r--r-- | tools/lib/h5diff_util.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/lib/h5diff_util.c b/tools/lib/h5diff_util.c index 0c02779..7a09ada 100644 --- a/tools/lib/h5diff_util.c +++ b/tools/lib/h5diff_util.c @@ -283,7 +283,6 @@ get_sign(H5T_sign_t sign) return "H5T_NSGN"; default: - HDassert(0); return "unknown sign value"; } /* end switch */ } @@ -340,7 +339,6 @@ get_class(H5T_class_t tclass) case H5T_NO_CLASS: case H5T_NCLASSES: default: - HDassert(0); return("Invalid class"); } /* end switch */ } /* end get_class() */ @@ -395,7 +393,10 @@ herr_t match_up_memsize (hid_t f_tid1_id, hid_t f_tid2_id, *m_size2 = H5Tget_size(*m_tid2); } /* end else */ } /* end if */ - HDassert((*m_size1) == (*m_size2)); + if((*m_size1) != (*m_size2)) { + ret = FAIL; + goto out; + } out: return ret; |