diff options
Diffstat (limited to 'src/H5Tcompound.c')
-rw-r--r-- | src/H5Tcompound.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Tcompound.c b/src/H5Tcompound.c index 3f0046a..dc7ae23 100644 --- a/src/H5Tcompound.c +++ b/src/H5Tcompound.c @@ -560,8 +560,8 @@ H5T_pack(const H5T_t *dt) HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "unable to pack part of a compound datatype") /* Update the member size */ - dt->shared->u.compnd.memb[i].size = dt->shared->u.compnd.memb[i].type->shared->size; - } + dt->shared->u.compnd.memb[i].size = (dt->shared->u.compnd.memb[i].type)->shared->size; + } /* Remove padding between members */ if(H5T_sort_value(dt, NULL)<0) |