summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2005-05-05 19:33:35 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2005-05-05 19:33:35 (GMT)
commit5e1d30ba2db2b2641497f630a148d10ec751029e (patch)
tree82a7d02d1bb0f84e28fc7509937aaaea4472c7c6
parent8739d21deb876f2b4005a6eb91ecb38152d3042e (diff)
downloadhdf5-5e1d30ba2db2b2641497f630a148d10ec751029e.zip
hdf5-5e1d30ba2db2b2641497f630a148d10ec751029e.tar.gz
hdf5-5e1d30ba2db2b2641497f630a148d10ec751029e.tar.bz2
[svn-r10732] Purpose: Bug fix
Description: A user reported conversion of floating-point numbers returned some wrong value. It turned out a variable in H5T_conv_f_f() wasn't reset after being used for each element. See bug #356 for details. Solution: Simply reset it. Platforms tested: fuss; tested with the program user provided. Simple change.
-rw-r--r--src/H5Tconv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/H5Tconv.c b/src/H5Tconv.c
index 1961932..d4c4481 100644
--- a/src/H5Tconv.c
+++ b/src/H5Tconv.c
@@ -3395,6 +3395,8 @@ H5T_conv_f_f (hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts,
H5T_bit_set(d, dst.u.f.mpos, dst.u.f.msize, FALSE);
}
}
+ /*reset CARRY*/
+ carry = 0;
H5_CHECK_OVERFLOW(expo,hssize_t,hsize_t);
H5T_bit_set_d(d, dst.u.f.epos, dst.u.f.esize, (hsize_t)expo);