summaryrefslogtreecommitdiffstats
path: root/src/H5Tconv.c
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2005-05-05 19:31:54 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2005-05-05 19:31:54 (GMT)
commita867893cdc79c3bdb0d665b4b0453659a5c47e54 (patch)
tree6aa427cfe2500fdf795fd01dfcf553a42c49e9d0 /src/H5Tconv.c
parentb0e5134171d5c92a0b50bae4daba97651eeeafe6 (diff)
downloadhdf5-a867893cdc79c3bdb0d665b4b0453659a5c47e54.zip
hdf5-a867893cdc79c3bdb0d665b4b0453659a5c47e54.tar.gz
hdf5-a867893cdc79c3bdb0d665b4b0453659a5c47e54.tar.bz2
[svn-r10731] 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: Simple reset it. Platforms tested: fuss; also tested with the program user provided. Very simple change.
Diffstat (limited to 'src/H5Tconv.c')
-rw-r--r--src/H5Tconv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/H5Tconv.c b/src/H5Tconv.c
index abd6935..5b4b4b7 100644
--- a/src/H5Tconv.c
+++ b/src/H5Tconv.c
@@ -3799,6 +3799,8 @@ H5T_conv_f_f (hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts,
}
}
}
+ /*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);