summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjhendersonHDF <jhenderson@hdfgroup.org>2023-08-02 20:14:22 (GMT)
committerGitHub <noreply@github.com>2023-08-02 20:14:22 (GMT)
commitd8dd57aba1cb78771ff1c86330b08453e0cc2838 (patch)
tree5b270cf0143ffdf74e2ce72bb5a2346793e034a2 /src
parent3fc5e34d71c9300ec10e87f2534bccec8df85756 (diff)
downloadhdf5-d8dd57aba1cb78771ff1c86330b08453e0cc2838.zip
hdf5-d8dd57aba1cb78771ff1c86330b08453e0cc2838.tar.gz
hdf5-d8dd57aba1cb78771ff1c86330b08453e0cc2838.tar.bz2
Fix incorrect error check in H5Ofill.c for undefined fill values (#3312) (#3328)
Diffstat (limited to 'src')
-rw-r--r--src/H5Ofill.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Ofill.c b/src/H5Ofill.c
index 18ceb13..d2f14af 100644
--- a/src/H5Ofill.c
+++ b/src/H5Ofill.c
@@ -272,7 +272,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 */