diff options
author | jhendersonHDF <jhenderson@hdfgroup.org> | 2023-08-02 04:14:02 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-02 04:14:02 (GMT) |
commit | a78863a82c789ea123a21d568a26f873edbe6e7e (patch) | |
tree | 4de369b8b37f431f5801a9d7a01580e3a0500439 /src/H5Ofill.c | |
parent | b1e07c74fde8bf4f1c61c98e951f080c570accf5 (diff) | |
download | hdf5-a78863a82c789ea123a21d568a26f873edbe6e7e.zip hdf5-a78863a82c789ea123a21d568a26f873edbe6e7e.tar.gz hdf5-a78863a82c789ea123a21d568a26f873edbe6e7e.tar.bz2 |
Fix incorrect error check in H5Ofill.c for undefined fill values (#3312)
Diffstat (limited to 'src/H5Ofill.c')
-rw-r--r-- | src/H5Ofill.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Ofill.c b/src/H5Ofill.c index 90c966a..86cb46a 100644 --- a/src/H5Ofill.c +++ b/src/H5Ofill.c @@ -273,7 +273,7 @@ H5O__fill_new_decode(H5F_t H5_ATTR_UNUSED *f, H5O_t H5_ATTR_UNUSED *open_oh, /* Check for undefined fill value */ if (flags & H5O_FILL_FLAG_UNDEFINED_VALUE) { - if (flags & (unsigned)~H5O_FILL_FLAG_HAVE_VALUE) + if (flags & H5O_FILL_FLAG_HAVE_VALUE) HGOTO_ERROR(H5E_OHDR, H5E_CANTLOAD, NULL, "have value and undefined value flags both set") /* Set value for "undefined" fill value */ |