summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2005-02-14 19:47:57 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2005-02-14 19:47:57 (GMT)
commit17f24c954c0f0d98cd1a8a2e44cf7c1b7df234a7 (patch)
tree4af06e6afa20dc617fd79cafc5013616b549f983 /src
parentd308ee9e68863c3bd7424fd3215d38ab4c1a9156 (diff)
downloadhdf5-17f24c954c0f0d98cd1a8a2e44cf7c1b7df234a7.zip
hdf5-17f24c954c0f0d98cd1a8a2e44cf7c1b7df234a7.tar.gz
hdf5-17f24c954c0f0d98cd1a8a2e44cf7c1b7df234a7.tar.bz2
[svn-r10003] Purpose: Bug fix
Description: At line 3564, the command H5T_bit_set(s, src.u.f.mpos, 1, FALSE) has unclear intention to me. Before I figure it out, move it to line 3590, where I think it should be. This did fix some data conversion. Platforms tested: fuss - already test it for v1.6.
Diffstat (limited to 'src')
-rw-r--r--src/H5Tconv.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/H5Tconv.c b/src/H5Tconv.c
index e8905c0..5cf7461 100644
--- a/src/H5Tconv.c
+++ b/src/H5Tconv.c
@@ -3560,6 +3560,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;
+ /* This line was moved to line 3590 */
/*H5T_bit_set(s, src.u.f.mpos, 1, FALSE); - Why do this? */
}
} else if (H5T_NORM_IMPLIED==src.u.f.norm) {
@@ -3584,6 +3585,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 3564 */
+ 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 {