diff options
Diffstat (limited to 'src/H5Tconv.c')
-rw-r--r-- | src/H5Tconv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Tconv.c b/src/H5Tconv.c index a32efa4..7a01133 100644 --- a/src/H5Tconv.c +++ b/src/H5Tconv.c @@ -6423,7 +6423,7 @@ H5T_conv_double_float (hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, *((float*)d) = -FLT_MAX; } } else { - *((float*)d) = *((double*)s); + *((float*)d) = (float) *((double*)s); } /* Unalign destination */ |