diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/H5Tconv.c | 4 | ||||
-rw-r--r-- | src/H5config.h.in | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/H5Tconv.c b/src/H5Tconv.c index 78744d5..156e359 100644 --- a/src/H5Tconv.c +++ b/src/H5Tconv.c @@ -9369,9 +9369,9 @@ H5T_conv_i_f (hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, hsize_t nelmts, */ /* Check 1st dropoff bit, see if it's set. */ - if(H5T_bit_get_d(int_buf, (first-dst.u.f.msize-1), 1)) { + if(H5T_bit_get_d(int_buf, ((first-dst.u.f.msize)-1), 1)) { /* Check all bits after 1st dropoff bit, see if any of them is set. */ - if((first-dst.u.f.msize-1) > 0 && H5T_bit_get_d(int_buf, 0, (first-dst.u.f.msize-1))) + if(((first-dst.u.f.msize)-1) > 0 && H5T_bit_get_d(int_buf, 0, ((first-dst.u.f.msize)-1))) do_round = 1; else { /* The .50...0 case */ /* Check if the least significant bit is odd. */ diff --git a/src/H5config.h.in b/src/H5config.h.in index 3a2924c..dffdb8a 100644 --- a/src/H5config.h.in +++ b/src/H5config.h.in @@ -501,6 +501,10 @@ /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS +/* Define if your system can accurately convert unsigned long long values to + floating-point values. */ +#undef SW_ULONG_TO_FP_BOTTOM_BIT_WORKS + /* Define if your system supports pthread_attr_setscope(&attribute, PTHREAD_SCOPE_SYSTEM) call. */ #undef SYSTEM_SCOPE_THREADS |