diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2006-11-07 20:19:41 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2006-11-07 20:19:41 (GMT) |
commit | e87cb9148356b581d8ff8a910ea3acc9d549ee7a (patch) | |
tree | b4a8910040dccd553a23fe831b4f5f1e1798071e /src/H5HFdbg.c | |
parent | 53357538de48331d44345e8b91020c84fc144e9c (diff) | |
download | hdf5-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/H5HFdbg.c')
-rw-r--r-- | src/H5HFdbg.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/H5HFdbg.c b/src/H5HFdbg.c index 8553b15..5f5c751 100644 --- a/src/H5HFdbg.c +++ b/src/H5HFdbg.c @@ -55,7 +55,7 @@ typedef struct { int indent; /* Indention amount */ int fwidth; /* Field width mount */ haddr_t dblock_addr; /* Direct block's address */ - haddr_t dblock_size; /* Direct block's size */ + hsize_t dblock_size; /* Direct block's size */ uint8_t *marker; /* 'Marker' array for free space */ size_t sect_count; /* Number of free space sections in block */ size_t amount_free; /* Amount of free space in block */ @@ -340,11 +340,11 @@ H5HF_dblock_debug_cb(const H5FS_section_info_t *_sect, void *_udata) if(sect_start < dblock_start) start = 0; else - start = sect_start - dblock_start; + H5_ASSIGN_OVERFLOW(/* To: */ start, /* From: */ (sect_start - dblock_start), /* From: */ hsize_t, /* To: */ size_t) if(sect_end > dblock_end) - end = udata->dblock_size; + H5_ASSIGN_OVERFLOW(/* To: */ end, /* From: */ udata->dblock_size, /* From: */ hsize_t, /* To: */ size_t) else - end = (sect_end - dblock_start) + 1; + H5_ASSIGN_OVERFLOW(/* To: */ end, /* From: */ ((sect_end - dblock_start) + 1), /* From: */ hsize_t, /* To: */ size_t) /* Calculate the length */ len = end - start; |