summaryrefslogtreecommitdiffstats
path: root/src/H5T.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>1998-04-23 22:24:38 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>1998-04-23 22:24:38 (GMT)
commitca0a7c164e2e492d5c48d066bacf83a92e675c2e (patch)
tree37c5124c23ceddf677e9e6516e0dde696152655c /src/H5T.c
parenteba569241e9675494bcc7df4d0005b4a75a1d82d (diff)
downloadhdf5-ca0a7c164e2e492d5c48d066bacf83a92e675c2e.zip
hdf5-ca0a7c164e2e492d5c48d066bacf83a92e675c2e.tar.gz
hdf5-ca0a7c164e2e492d5c48d066bacf83a92e675c2e.tar.bz2
[svn-r361] Added Attribute (H5A) code.
Diffstat (limited to 'src/H5T.c')
-rw-r--r--src/H5T.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5T.c b/src/H5T.c
index 3ffbdcc..1a7f911 100644
--- a/src/H5T.c
+++ b/src/H5T.c
@@ -3006,9 +3006,9 @@ H5T_insert(H5T_t *parent, const char *name, size_t offset, const H5T_t *member)
/* Does the new member overlap any existing member ? */
for (i = 0; i < parent->u.compnd.nmembs; i++) {
- if ((offset < parent->u.compnd.memb[i].offset &&
+ if ((offset <= parent->u.compnd.memb[i].offset &&
offset + member->size > parent->u.compnd.memb[i].offset) ||
- (parent->u.compnd.memb[i].offset < offset &&
+ (parent->u.compnd.memb[i].offset <= offset &&
parent->u.compnd.memb[i].offset +
parent->u.compnd.memb[i].type->size > offset)) {
HRETURN_ERROR(H5E_DATATYPE, H5E_CANTINSERT, FAIL,