From 2d0c5c10679e3cbfc0b5d21f4989efa695a0a463 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Sat, 11 Nov 2000 11:44:28 -0500 Subject: [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) --- src/H5Odtype.c | 5 +++-- 1 file 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; ju.array.ndims; j++) + UINT32DECODE(*pp, dt->u.array.perm[j]); /* Decode base type of array */ if (NULL==(dt->parent = H5FL_ALLOC(H5T_t,1))) -- cgit v0.12