From 7baf33d19bcb13d1ed37f1216203da6f6b1a6750 Mon Sep 17 00:00:00 2001 From: Raymond Lu Date: Tue, 1 Mar 2005 14:40:39 -0500 Subject: [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. --- src/H5Tconv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/H5Tconv.c b/src/H5Tconv.c index 891d6f8..0016e46 100644 --- a/src/H5Tconv.c +++ b/src/H5Tconv.c @@ -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*/ /*------------------------------------------------------------------------- -- cgit v0.12