summaryrefslogtreecommitdiffstats
path: root/src/H5Tconv.c
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2005-03-01 19:40:39 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2005-03-01 19:40:39 (GMT)
commit7baf33d19bcb13d1ed37f1216203da6f6b1a6750 (patch)
tree5658c72406406d6ad162d684592457adcdc92b33 /src/H5Tconv.c
parent2f4f7d07b18ac5bcc2e7b38842c2972c910cc7a1 (diff)
downloadhdf5-7baf33d19bcb13d1ed37f1216203da6f6b1a6750.zip
hdf5-7baf33d19bcb13d1ed37f1216203da6f6b1a6750.tar.gz
hdf5-7baf33d19bcb13d1ed37f1216203da6f6b1a6750.tar.bz2
[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.
Diffstat (limited to 'src/H5Tconv.c')
-rw-r--r--src/H5Tconv.c2
1 files changed, 2 insertions, 0 deletions
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*/
/*-------------------------------------------------------------------------