diff options
Diffstat (limited to 'tools/lib/h5diff_attr.c')
-rw-r--r-- | tools/lib/h5diff_attr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/lib/h5diff_attr.c b/tools/lib/h5diff_attr.c index c2e36ef..c1dc945 100644 --- a/tools/lib/h5diff_attr.c +++ b/tools/lib/h5diff_attr.c @@ -156,9 +156,9 @@ int diff_attr(hid_t loc1_id, goto error; if ((mtype2_id=H5Tget_native_type(ftype2_id,H5T_DIR_DEFAULT))<0) goto error; - if ((msize1=H5Tget_size(mtype1_id))<0) + if ((msize1=H5Tget_size(mtype1_id))==0) goto error; - if ((msize2=H5Tget_size(mtype2_id))<0) + if ((msize2=H5Tget_size(mtype2_id))==0) goto error; assert(msize1==msize2); |