diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2006-03-22 18:11:24 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2006-03-22 18:11:24 (GMT) |
commit | 3424f9f5d1c45e739480e16ab3faa272ca1569f8 (patch) | |
tree | 9137c6377285d8576d35205f9e390dbcff40fa57 /src/H5Zscaleoffset.c | |
parent | bd73819e2682bebcde6e9c3f1183acdb9608e6ce (diff) | |
download | hdf5-3424f9f5d1c45e739480e16ab3faa272ca1569f8.zip hdf5-3424f9f5d1c45e739480e16ab3faa272ca1569f8.tar.gz hdf5-3424f9f5d1c45e739480e16ab3faa272ca1569f8.tar.bz2 |
[svn-r12128] Purpose:
Code cleanup
Description:
Clean up some compiler warnings (esp. those flagged on Windows builds)
Platforms tested:
FreeBSD 4.11 (sleipnir)
Too minor to require h5committest
Diffstat (limited to 'src/H5Zscaleoffset.c')
-rw-r--r-- | src/H5Zscaleoffset.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Zscaleoffset.c b/src/H5Zscaleoffset.c index 8326516..20f0c6e 100644 --- a/src/H5Zscaleoffset.c +++ b/src/H5Zscaleoffset.c @@ -991,11 +991,11 @@ H5Z_filter_scaleoffset (unsigned flags, size_t cd_nelmts, const unsigned cd_valu if(scale_type==H5Z_SO_FLOAT_DSCALE) { /* floating-point type, variable-minimum-bits */ D_val = (double)scale_factor; } else { /* integer type, or floating-point type with fixed-minimum-bits method */ - if(scale_factor>cd_values[H5Z_SCALEOFFSET_PARM_SIZE]*8) + if(scale_factor > (int)(cd_values[H5Z_SCALEOFFSET_PARM_SIZE] * 8)) HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, 0, "minimum number of bits exceeds maximum") /* no need to process data */ - if(scale_factor==cd_values[H5Z_SCALEOFFSET_PARM_SIZE]*8) { + if(scale_factor == (int)(cd_values[H5Z_SCALEOFFSET_PARM_SIZE] * 8)) { ret_value = *buf_size; goto done; } |