diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2003-04-09 01:52:10 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2003-04-09 01:52:10 (GMT) |
commit | 831841b58f634e7902ba67b8fa2ba37a090cf881 (patch) | |
tree | 7fa67efbb9c8670186f72946f2d4c56e4beef742 | |
parent | 99252b703db63a3d65743c39314b7067e9b5a63b (diff) | |
download | hdf5-831841b58f634e7902ba67b8fa2ba37a090cf881.zip hdf5-831841b58f634e7902ba67b8fa2ba37a090cf881.tar.gz hdf5-831841b58f634e7902ba67b8fa2ba37a090cf881.tar.bz2 |
[svn-r6605] Purpose:
Code cleanup
Description:
Array declaration was using hard-coded constant for maximum number of
dimensions.
Solution:
Changed to use H5O_LAYOUT_NDIMS.
Platforms tested:
FreeBSD 4.8 (sleipnir) w/szip
Linux 2.4 (sleipnir) w/szip
Solaris 2.7 (arabica) w/FORTRAN
IRIX64 6.5 (modi4) w/szip, FORTRAN & parallel
Misc. update:
-rw-r--r-- | src/H5Dprivate.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Dprivate.h b/src/H5Dprivate.h index 2d07073..e69b0ad 100644 --- a/src/H5Dprivate.h +++ b/src/H5Dprivate.h @@ -54,7 +54,7 @@ #define H5D_CRT_CHUNK_DIM_DEF 1 /* Definitions for chunk size */ #define H5D_CRT_CHUNK_SIZE_NAME "chunk_size" -#define H5D_CRT_CHUNK_SIZE_SIZE sizeof(hsize_t[32]) +#define H5D_CRT_CHUNK_SIZE_SIZE sizeof(hsize_t[H5O_LAYOUT_NDIMS]) #define H5D_CRT_CHUNK_SIZE_DEF {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,\ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1} /* Definitions for fill value. size=0 means fill value will be 0 as |