summaryrefslogtreecommitdiffstats
path: root/src/H5Tconv.c
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2005-02-14 19:26:01 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2005-02-14 19:26:01 (GMT)
commitad9668e7b893032594e928ad9a2978adafb6ec9d (patch)
treebd2df032c60e3cd3d744d6909d2d07881a9253de /src/H5Tconv.c
parent5f8a378ea2b83767cc16546722153f5ba08c7dfa (diff)
downloadhdf5-ad9668e7b893032594e928ad9a2978adafb6ec9d.zip
hdf5-ad9668e7b893032594e928ad9a2978adafb6ec9d.tar.gz
hdf5-ad9668e7b893032594e928ad9a2978adafb6ec9d.tar.bz2
[svn-r10002] Purpose: bug fix
Description: At line 3203, H5T_bit_set(s, src.u.f.mpos, 1, FALSE) has unclear intention to me. Before I figure out why it was there, moved it to line 3229, where I think it should be. This did fix some data conversion. Platforms tested: h5committest.
Diffstat (limited to 'src/H5Tconv.c')
-rw-r--r--src/H5Tconv.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/H5Tconv.c b/src/H5Tconv.c
index 116c936..ba1188b 100644
--- a/src/H5Tconv.c
+++ b/src/H5Tconv.c
@@ -3199,7 +3199,8 @@ 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); - Why do this? */
+ /* This line was moved to line 3229 */
+ /* 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;
@@ -3223,6 +3224,9 @@ H5T_conv_f_f (hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts,
H5T_BIT_MSB, TRUE);
assert(bitno>=0);
expo -= (src.u.f.ebias-1) + (src.u.f.msize-bitno);
+ if(0==bitno)
+ /* This line was moved from line 3203 */
+ H5T_bit_set(s, src.u.f.mpos, 1, FALSE); /* - Why do this? */
} else if (H5T_NORM_IMPLIED==src.u.f.norm) {
expo -= src.u.f.ebias;
} else {