diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2010-07-19 18:38:40 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2010-07-19 18:38:40 (GMT) |
commit | 7976c8c0ecaa98f7a280ac256cba8f5b0e1f1b72 (patch) | |
tree | 6fb5b4223aa22dbdd45f684bbfdcc88f482375e4 /src/H5Sselect.c | |
parent | 71ac1a79962cc2fc1216a9aa57fd8983ad5c29e4 (diff) | |
download | hdf5-7976c8c0ecaa98f7a280ac256cba8f5b0e1f1b72.zip hdf5-7976c8c0ecaa98f7a280ac256cba8f5b0e1f1b72.tar.gz hdf5-7976c8c0ecaa98f7a280ac256cba8f5b0e1f1b72.tar.bz2 |
[svn-r19100] Description:
Bring r19099 from trunk to 1.8 branch:
Fix const pointer issues for projection construction routine and also
bump time before alarm kicks in to terminate a test from 20 minutes to 30
minutes, to give the PGI compiler tests w/debugging enabled a chance to finish.
Tested on:
Mac OS X/32 10.6.4 (amazon) w/debug
Linux/32 2.6.18 (jam) w/PGI & debug
Diffstat (limited to 'src/H5Sselect.c')
-rw-r--r-- | src/H5Sselect.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Sselect.c b/src/H5Sselect.c index af3c9f9..17b7fab 100644 --- a/src/H5Sselect.c +++ b/src/H5Sselect.c @@ -1756,7 +1756,7 @@ done: --------------------------------------------------------------------------*/ herr_t H5S_select_construct_projection(const H5S_t *base_space, H5S_t **new_space_ptr, - unsigned new_space_rank, const void *buf, void **adj_buf_ptr, hsize_t element_size) + unsigned new_space_rank, const void *buf, void const **adj_buf_ptr, hsize_t element_size) { H5S_t * new_space = NULL; /* New dataspace constructed */ hsize_t base_space_dims[H5S_MAX_RANK]; /* Current dimensions of base dataspace */ @@ -1944,7 +1944,7 @@ H5S_select_construct_projection(const H5S_t *base_space, H5S_t **new_space_ptr, * value to the type cast buf pointer, cast the result back * to a pointer to void, and assign the result to *adj_buf_ptr. */ - *adj_buf_ptr = (void *)(((const uint8_t *)buf) + + *adj_buf_ptr = (const void *)(((const uint8_t *)buf) + ((size_t)(projected_space_element_offset * element_size))); } /* end if */ else |