diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2001-01-04 01:31:33 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2001-01-04 01:31:33 (GMT) |
commit | 2725a29b0e7158b8b0d8dfd7d3ab42126db6f235 (patch) | |
tree | 6e90df8ecc503ee396f666ac1ec8466913cde260 /src/H5D.c | |
parent | 85c19fc0bac344a477066c8239c3a8f935abd75c (diff) | |
download | hdf5-2725a29b0e7158b8b0d8dfd7d3ab42126db6f235.zip hdf5-2725a29b0e7158b8b0d8dfd7d3ab42126db6f235.tar.gz hdf5-2725a29b0e7158b8b0d8dfd7d3ab42126db6f235.tar.bz2 |
[svn-r3236] Purpose:
Clean up code.
Description:
Cleaned up various compiler warnings.
Platforms tested:
FreeBSD 4.2 (hawkwind)
Diffstat (limited to 'src/H5D.c')
-rw-r--r-- | src/H5D.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -1826,7 +1826,7 @@ printf("%s: check 2.0, src_type_size=%d, dst_type_size=%d, target_size=%d, min_e #endif /* Start strip mining... */ - assert(nelmts==(hssize_t)(size_t)nelmts); /*check for overflow*/ + assert(nelmts==(hssize_t)((size_t)nelmts)); /*check for overflow*/ for (smine_start=0; smine_start<(size_t)nelmts; smine_start+=smine_nelmts) { @@ -2294,7 +2294,7 @@ H5D_write(H5D_t *dataset, const H5T_t *mem_type, const H5S_t *mem_space, #endif /* Start strip mining... */ - assert(nelmts==(hssize_t)(size_t)nelmts); /*check for overflow*/ + assert(nelmts==(hssize_t)((size_t)nelmts)); /*check for overflow*/ for (smine_start=0; smine_start<(size_t)nelmts; smine_start+=smine_nelmts) { @@ -2772,9 +2772,8 @@ H5Dget_storage_size(hid_t dset_id) H5TRACE1("h","i",dset_id); /* Check args */ - if (H5I_DATASET!=H5I_get_type(dset_id) || - NULL==(dset=H5I_object(dset_id))) { - HRETURN_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a dataset"); + if (H5I_DATASET!=H5I_get_type(dset_id) || NULL==(dset=H5I_object(dset_id))) { + HRETURN_ERROR(H5E_ARGS, H5E_BADTYPE, 0, "not a dataset"); } size = H5D_get_storage_size(dset); |