mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-23 16:20:57 +08:00
[svn-r2867] Purpose:
Bug fix. Description: Dimension permutations for array datatypes were being skipped over when datatype information was read from the file (because they aren't used anywhere in the library currently), but this could cause problems in the future when they are used for something. Solution: Read them in anyway, even if we aren't using them yet. Platforms tested: FreeBSD 4.1.1 (hawkwind)
This commit is contained in:
parent
04223a18f4
commit
2d0c5c1067
@ -391,8 +391,9 @@ H5O_dtype_decode_helper(H5F_t *f, const uint8_t **pp, H5T_t *dt)
|
||||
dt->u.array.nelem *= dt->u.array.dim[j];
|
||||
} /* end for */
|
||||
|
||||
/* Skip dimension permutations (unused currently) */
|
||||
*pp += 4*dt->u.array.ndims;
|
||||
/* Decode array dimension permutations (even though they are unused currently) */
|
||||
for (j=0; j<dt->u.array.ndims; j++)
|
||||
UINT32DECODE(*pp, dt->u.array.perm[j]);
|
||||
|
||||
/* Decode base type of array */
|
||||
if (NULL==(dt->parent = H5FL_ALLOC(H5T_t,1)))
|
||||
|
Loading…
Reference in New Issue
Block a user