mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-18 15:15:56 +08:00
[svn-r10113] Purpose: Bug fix
Description: Condition check of macro H5_ULLONG_TO_FP_CAST_WORKS was accidentally taken out in last revision. This macro is defined for Windows because Windows doesn't support conversion from "unsigned long long" to any floating-point type. Solution: Added it back to H5T_conv_ullong_xxx() functions(xxx is any of "float", "double", or "long double"). Platforms tested: tested on Windows.
This commit is contained in:
parent
2f4f7d07b1
commit
7baf33d19b
@ -8014,6 +8014,7 @@ done:
|
||||
}
|
||||
|
||||
|
||||
#if H5_ULLONG_TO_FP_CAST_WORKS
|
||||
/*-------------------------------------------------------------------------
|
||||
* Function: H5T_conv_ullong_float
|
||||
*
|
||||
@ -8108,6 +8109,7 @@ H5T_conv_ullong_ldouble (hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata,
|
||||
done:
|
||||
FUNC_LEAVE_NOAPI(ret_value);
|
||||
}
|
||||
#endif /*H5_ULLONG_TO_FP_CAST_WORKS*/
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user