summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2005-01-20 22:19:13 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2005-01-20 22:19:13 (GMT)
commit3d83546b364c38c29ee80613010047af7a168c4c (patch)
tree712d4d0831d4646c4593fdba9f3a5f9031089a73 /src
parentea2dd2a44af692cb113d85bd661d3be9aedf4ea5 (diff)
downloadhdf5-3d83546b364c38c29ee80613010047af7a168c4c.zip
hdf5-3d83546b364c38c29ee80613010047af7a168c4c.tar.gz
hdf5-3d83546b364c38c29ee80613010047af7a168c4c.tar.bz2
[svn-r9849] Purpose: New test and a few bug fix
Description: Test conversion from native integer to derived floating-point type and convert back; test conversion from derived floating-point to derived floating-point types and convert back. Fixed a few minor bugs related to type conversion in the library. Platforms tested: h5committest and fuss
Diffstat (limited to 'src')
-rw-r--r--src/H5Tconv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Tconv.c b/src/H5Tconv.c
index df87a2d..50e4aa9 100644
--- a/src/H5Tconv.c
+++ b/src/H5Tconv.c
@@ -3547,7 +3547,7 @@ H5T_conv_f_f (hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts,
msize = bitno;
} else if (0==bitno) {
msize = 1;
- H5T_bit_set(s, src.u.f.mpos, 1, FALSE);
+ /*H5T_bit_set(s, src.u.f.mpos, 1, FALSE); - Why do this? */
}
} else if (H5T_NORM_IMPLIED==src.u.f.norm) {
msize = src.u.f.msize;
@@ -8868,7 +8868,7 @@ H5T_conv_f_i (hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts,
/*
* Find the sign bit value of the source.
*/
- sign = H5T_bit_get_d(s, src.prec-1, 1);
+ sign = H5T_bit_get_d(s, src.u.f.sign, 1);
/*
* Check for special cases: +0, -0, +Inf, -Inf, NaN