diff options
author | Scot Breitenfeld <brtnfld@hdfgroup.org> | 2023-09-08 23:06:23 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-08 23:06:23 (GMT) |
commit | 117d579c326f64d09d71e28cb0135bbd16a5232e (patch) | |
tree | 384ac7e1e3b9881e6d6ab783ee0391ab7adc1f29 /test/tid.c | |
parent | 2345f901b26277f643dd91a528e4da975f4e75c1 (diff) | |
download | hdf5-117d579c326f64d09d71e28cb0135bbd16a5232e.zip hdf5-117d579c326f64d09d71e28cb0135bbd16a5232e.tar.gz hdf5-117d579c326f64d09d71e28cb0135bbd16a5232e.tar.bz2 |
Consistent initialization of hid_t in the tests (#3521)
Diffstat (limited to 'test/tid.c')
-rw-r--r-- | test/tid.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -424,7 +424,7 @@ test_is_valid(void) goto out; /* Check that an id of -1 is invalid */ - tri_ret = H5Iis_valid((hid_t)-1); + tri_ret = H5Iis_valid((hid_t)H5I_INVALID_HID); VERIFY(tri_ret, false, "H4Iis_valid"); if (tri_ret != false) goto out; @@ -465,7 +465,7 @@ test_get_type(void) goto out; /* Check that the ID is correct */ - type_ret = H5Iget_type((hid_t)-1); + type_ret = H5Iget_type((hid_t)H5I_INVALID_HID); VERIFY(type_ret, H5I_BADID, "H5Iget_type"); if (type_ret != H5I_BADID) goto out; |