summaryrefslogtreecommitdiffstats
path: root/src/H5Ofill.c
diff options
context:
space:
mode:
authorVailin Choi <vchoi@jam.ad.hdfgroup.org>2018-07-12 23:25:49 (GMT)
committerM. Scot Breitenfeld <brtnfld@hdfgroup.org>2018-07-26 22:18:13 (GMT)
commitc3f4af256a51e4ba70a984c32cf0f5e68a665a61 (patch)
treea2a9f4e34960213d889f25a6302ae1e3449ffa8b /src/H5Ofill.c
parent076b77891a79702ed2c094364d42c86585f712a1 (diff)
downloadhdf5-c3f4af256a51e4ba70a984c32cf0f5e68a665a61.zip
hdf5-c3f4af256a51e4ba70a984c32cf0f5e68a665a61.tar.gz
hdf5-c3f4af256a51e4ba70a984c32cf0f5e68a665a61.tar.bz2
Changes based on feedback from pull request.
Diffstat (limited to 'src/H5Ofill.c')
-rw-r--r--src/H5Ofill.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/H5Ofill.c b/src/H5Ofill.c
index 3ce2e4f..da9829b 100644
--- a/src/H5Ofill.c
+++ b/src/H5Ofill.c
@@ -19,7 +19,6 @@
*/
#include "H5Omodule.h" /* This source code file is part of the H5O module */
-#define H5T_FRIEND /*prevent warning from including H5Tpkg */
#include "H5private.h" /* Generic Functions */
@@ -32,7 +31,6 @@
#include "H5Pprivate.h" /* Property lists */
#include "H5Sprivate.h" /* Dataspaces */
-#include "H5Tpkg.h" /* Datatypes */
static void *H5O_fill_old_decode(H5F_t *f, H5O_t *open_oh, unsigned mesg_flags,
unsigned *ioflags, size_t p_size, const uint8_t *p);
@@ -345,7 +343,7 @@ H5O_fill_old_decode(H5F_t *f, H5O_t *open_oh,
if((dt = H5O_msg_read_oh(f, open_oh, H5O_DTYPE_ID, NULL)) < 0)
HGOTO_ERROR(H5E_SYM, H5E_CANTGET, NULL, "can't read DTYPE message")
/* Verify size */
- if(fill->size != dt->shared->size)
+ if(fill->size != H5T_GET_SIZE(dt))
HGOTO_ERROR(H5E_SYM, H5E_CANTGET, NULL, "inconsistent fill value size")
}