diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2005-12-08 18:34:51 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2005-12-08 18:34:51 (GMT) |
commit | 88c15b1617872ce1672d7333481a5aa32ee23d5a (patch) | |
tree | b3315150ab77826194626d3cd5cf6481badf83e4 /test/dtransform.c | |
parent | bfa65eed0f4f901c14244728ea364966c51e0417 (diff) | |
download | hdf5-88c15b1617872ce1672d7333481a5aa32ee23d5a.zip hdf5-88c15b1617872ce1672d7333481a5aa32ee23d5a.tar.gz hdf5-88c15b1617872ce1672d7333481a5aa32ee23d5a.tar.bz2 |
[svn-r11771] Purpose:
Code cleanup
Description:
Fix a bunch of warnings flagged by Windows compilers.
Platforms tested:
FreeBSD 4.11 (sleipnir)
Too minor to require h5committest
Diffstat (limited to 'test/dtransform.c')
-rw-r--r-- | test/dtransform.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/dtransform.c b/test/dtransform.c index c53c9fb..8f6ebd3 100644 --- a/test/dtransform.c +++ b/test/dtransform.c @@ -398,8 +398,8 @@ int test_poly(const hid_t dxpl_id_polynomial) { for(col = 0; col<COLS; col++) { - windchillC = (5/9.0)*(windchillFfloat[row][col] - 32); - polyflres[row][col] = (2.0+windchillC)*((windchillC-8.0)/2.0); + windchillC = (int)((5.0/9.0)*(windchillFfloat[row][col] - 32)); + polyflres[row][col] = (float)((2.0+windchillC)*((windchillC-8.0)/2.0)); } } @@ -412,8 +412,8 @@ int test_poly(const hid_t dxpl_id_polynomial) { for(col = 0; col<COLS; col++) { - windchillC = (5/9.0)*(windchillFfloat[row][col] - 32); - polyflres[row][col] = (2+windchillC)*((windchillC-8)/2); + windchillC = (int)((5.0/9.0)*(windchillFfloat[row][col] - 32)); + polyflres[row][col] = (float)((2+windchillC)*((windchillC-8)/2)); } } @@ -439,8 +439,8 @@ int test_copy(const hid_t dxpl_id_c_to_f_copy, const hid_t dxpl_id_polynomial_co { for(col = 0; col<COLS; col++) { - windchillC = (5/9.0)*(windchillFfloat[row][col] - 32); - polyflres[row][col] = (2+windchillC)*((windchillC-8)/2); + windchillC = (int)((5.0/9.0)*(windchillFfloat[row][col] - 32)); + polyflres[row][col] = (float)((2+windchillC)*((windchillC-8)/2)); } } |