summaryrefslogtreecommitdiffstats
path: root/src/H5HFdtable.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2006-11-07 20:19:41 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2006-11-07 20:19:41 (GMT)
commite87cb9148356b581d8ff8a910ea3acc9d549ee7a (patch)
treeb4a8910040dccd553a23fe831b4f5f1e1798071e /src/H5HFdtable.c
parent53357538de48331d44345e8b91020c84fc144e9c (diff)
downloadhdf5-e87cb9148356b581d8ff8a910ea3acc9d549ee7a.zip
hdf5-e87cb9148356b581d8ff8a910ea3acc9d549ee7a.tar.gz
hdf5-e87cb9148356b581d8ff8a910ea3acc9d549ee7a.tar.bz2
[svn-r12877] Description:
Clean up more compiler warnings. Tested on: Linux/64 2.6 (chicago2)
Diffstat (limited to 'src/H5HFdtable.c')
-rw-r--r--src/H5HFdtable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5HFdtable.c b/src/H5HFdtable.c
index 80ec8b1..8c97b19 100644
--- a/src/H5HFdtable.c
+++ b/src/H5HFdtable.c
@@ -167,7 +167,7 @@ HDfprintf(stderr, "%s: off = %Hu\n", "H5HF_dtable_lookup", off);
/* Check for offset in first row */
if(off < dtable->num_id_first_row) {
*row = 0;
- *col = off / dtable->cparam.start_block_size;
+ H5_ASSIGN_OVERFLOW(/* To: */ *col, /* From: */ (off / dtable->cparam.start_block_size), /* From: */ hsize_t, /* To: */ unsigned);
} /* end if */
else {
unsigned high_bit = H5V_log2_gen(off); /* Determine the high bit in the offset */
@@ -177,7 +177,7 @@ HDfprintf(stderr, "%s: off = %Hu\n", "H5HF_dtable_lookup", off);
HDfprintf(stderr, "%s: high_bit = %u, off_mask = %Hu\n", "H5HF_dtable_lookup", high_bit, off_mask);
#endif /* QAK */
*row = (high_bit - dtable->first_row_bits) + 1;
- *col = (off - off_mask) / dtable->row_block_size[*row];
+ H5_ASSIGN_OVERFLOW(/* To: */ *col, /* From: */ ((off - off_mask) / dtable->row_block_size[*row]), /* From: */ hsize_t, /* To: */ unsigned);
} /* end else */
FUNC_LEAVE_NOAPI(SUCCEED)