summaryrefslogtreecommitdiffstats
path: root/src/H5Oprivate.h
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2008-05-16 03:27:13 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2008-05-16 03:27:13 (GMT)
commitc23c6b939229efde53e105008d29b8bf441f5d99 (patch)
treef38a5b13b938dcf88fa5d7c33b613adaa1f2396c /src/H5Oprivate.h
parent70cdaa12b2bceadd6a6f6d7b66eaad626e8523d6 (diff)
downloadhdf5-c23c6b939229efde53e105008d29b8bf441f5d99.zip
hdf5-c23c6b939229efde53e105008d29b8bf441f5d99.tar.gz
hdf5-c23c6b939229efde53e105008d29b8bf441f5d99.tar.bz2
[svn-r15016] Description:
Port revision 15015 back to 1.8 branch: > Detect chunks that are >4GB before dataset gets created and return error > to application. > > Tweak lots of internal variables that hold the chunk size/dimensions to > use an 'uint32_t', instead of a 'size_t', so that the integer size is constant. > > Correct a number of our tests which were creating datasets with chunks > that were >4GB and add some specific tests for >4GB chunk size detection. > > Minor whitespace & other code cleanups. Tested on: Mac OS X/32 10.5.2 (amazon) Forthcoming testing on other platforms...
Diffstat (limited to 'src/H5Oprivate.h')
-rw-r--r--src/H5Oprivate.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Oprivate.h b/src/H5Oprivate.h
index 4a55ac2..3c5204f 100644
--- a/src/H5Oprivate.h
+++ b/src/H5Oprivate.h
@@ -334,8 +334,8 @@ typedef struct H5O_layout_contig_t {
typedef struct H5O_layout_chunk_t {
haddr_t addr; /* File address of B-tree */
unsigned ndims; /* Num dimensions in chunk */
- size_t dim[H5O_LAYOUT_NDIMS]; /* Size of chunk in elements */
- size_t size; /* Size of chunk in bytes */
+ uint32_t dim[H5O_LAYOUT_NDIMS]; /* Size of chunk in elements */
+ uint32_t size; /* Size of chunk in bytes */
H5RC_t *btree_shared; /* Ref-counted info for B-tree nodes */
} H5O_layout_chunk_t;