summaryrefslogtreecommitdiffstats
path: root/src/H5HFiter.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2009-01-14 14:01:12 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2009-01-14 14:01:12 (GMT)
commit60915ff8aaa392bebd82826b5b95ab741fedd832 (patch)
tree0b523fbcdd8db22e7146147a0e19ca40cdca02fd /src/H5HFiter.c
parentbbd83d97e03960839804ef3c87eb6c17fb940acd (diff)
downloadhdf5-60915ff8aaa392bebd82826b5b95ab741fedd832.zip
hdf5-60915ff8aaa392bebd82826b5b95ab741fedd832.tar.gz
hdf5-60915ff8aaa392bebd82826b5b95ab741fedd832.tar.bz2
[svn-r16307] Description:
Bring r16306 back from trunk: Add detection of C99 "designated initializers" to configure script and use new H5_HAVE_C99_DESIGNATED_INITIALIZER macro to conditionally compile default layout variables in src/H5Pdcpl.c Also, minor code cleanups, etc. Tested on: FreeBSD/32 6.3 (duty) in debug mode (Other platforms tested on revise_chunks branch)
Diffstat (limited to 'src/H5HFiter.c')
-rw-r--r--src/H5HFiter.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5HFiter.c b/src/H5HFiter.c
index 9e95c4e..e0f7142 100644
--- a/src/H5HFiter.c
+++ b/src/H5HFiter.c
@@ -183,7 +183,8 @@ HDfprintf(stderr, "%s: offset = %Hu\n", FUNC, offset);
curr_offset = offset - hdr->man_dtable.row_block_off[row];
/* Compute column */
- col = curr_offset / hdr->man_dtable.row_block_size[row];
+ H5_CHECK_OVERFLOW((curr_offset / hdr->man_dtable.row_block_size[row]), hsize_t, unsigned);
+ col = (unsigned)(curr_offset / hdr->man_dtable.row_block_size[row]);
#ifdef QAK
HDfprintf(stderr, "%s: row = %u, col = %u\n", FUNC, row, col);
HDfprintf(stderr, "%s: offset = %Hu\n", FUNC, offset);