diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2007-05-23 14:56:09 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2007-05-23 14:56:09 (GMT) |
commit | 605294cdb251a708b7bf117a10b30fb783041391 (patch) | |
tree | 60df8248b3ded6bb9494a46af4533296a4550ee1 /test | |
parent | 0d2784c841819b7c8b142221b97ecb7db68b3ce3 (diff) | |
download | hdf5-605294cdb251a708b7bf117a10b30fb783041391.zip hdf5-605294cdb251a708b7bf117a10b30fb783041391.tar.gz hdf5-605294cdb251a708b7bf117a10b30fb783041391.tar.bz2 |
[svn-r13800] Made correction to the last round of change: changed ABS function according to the floating types and cast the type correctly.
Tested on smirom.
Diffstat (limited to 'test')
-rw-r--r-- | test/dtypes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/dtypes.c b/test/dtypes.c index 39d6488..6b199e4 100644 --- a/test/dtypes.c +++ b/test/dtypes.c @@ -5692,7 +5692,7 @@ test_conv_flt_1 (const char *name, hid_t src, hid_t dst) HDmemcpy(aligned, saved+j*sizeof(float), sizeof(float)); /* Make sure the source value is in the valid range for the compiler. */ - if(HDfabs(*((double*)aligned)) < FLT_MIN) + if(HDfabsf(*((float*)aligned)) < FLT_MIN) continue; if (FLT_FLOAT==dst_type) { @@ -5730,7 +5730,7 @@ test_conv_flt_1 (const char *name, hid_t src, hid_t dst) } else { HDmemcpy(aligned, saved+j*sizeof(long double), sizeof(long double)); - if(HDfabs(*((double*)aligned)) < LDBL_MIN) + if(HDfabsl(*((long double*)aligned)) < LDBL_MIN) continue; if (FLT_FLOAT==dst_type) { |