diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 1998-04-23 22:24:38 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 1998-04-23 22:24:38 (GMT) |
commit | ca0a7c164e2e492d5c48d066bacf83a92e675c2e (patch) | |
tree | 37c5124c23ceddf677e9e6516e0dde696152655c /src/H5T.c | |
parent | eba569241e9675494bcc7df4d0005b4a75a1d82d (diff) | |
download | hdf5-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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, |