summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2000-11-11 16:44:28 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2000-11-11 16:44:28 (GMT)
commit2d0c5c10679e3cbfc0b5d21f4989efa695a0a463 (patch)
tree76f01dfca2afaea6b9f6acee336026be298b4e98 /src
parent04223a18f42f806646f8bb4a0ebfd819779d4ed4 (diff)
downloadhdf5-2d0c5c10679e3cbfc0b5d21f4989efa695a0a463.zip
hdf5-2d0c5c10679e3cbfc0b5d21f4989efa695a0a463.tar.gz
hdf5-2d0c5c10679e3cbfc0b5d21f4989efa695a0a463.tar.bz2
[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)
Diffstat (limited to 'src')
-rw-r--r--src/H5Odtype.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/H5Odtype.c b/src/H5Odtype.c
index 0a505ae..a0cfa49 100644
--- a/src/H5Odtype.c
+++ b/src/H5Odtype.c
@@ -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)))