From 17f24c954c0f0d98cd1a8a2e44cf7c1b7df234a7 Mon Sep 17 00:00:00 2001 From: Raymond Lu Date: Mon, 14 Feb 2005 14:47:57 -0500 Subject: [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. --- src/H5Tconv.c | 4 ++++ 1 file changed, 4 insertions(+) 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 { -- cgit v0.12