diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2005-06-13 21:35:38 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2005-06-13 21:35:38 (GMT) |
commit | ccc9a37b5222fde9c364bf730e6c3c83a763300a (patch) | |
tree | a67553bc2f6ffedf31bace4f572fabb29df5036a /src | |
parent | 9acff105847ea3cba56045ec1f8ab992b2e7f57e (diff) | |
download | hdf5-ccc9a37b5222fde9c364bf730e6c3c83a763300a.zip hdf5-ccc9a37b5222fde9c364bf730e6c3c83a763300a.tar.gz hdf5-ccc9a37b5222fde9c364bf730e6c3c83a763300a.tar.bz2 |
[svn-r10916] Purpose: Bug fix
Description: The hard conversion functions of "long double" and other floating
point types were left out for registration somehow.
Solution: Added them in.
Platforms tested: h5committest and fuss.
Diffstat (limited to 'src')
-rw-r--r-- | src/H5T.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -675,9 +675,7 @@ H5T_init_interface(void) H5T_t *native_ullong=NULL; /* Datatype structure for native unsigned llong */ H5T_t *native_float=NULL; /* Datatype structure for native float */ H5T_t *native_double=NULL; /* Datatype structure for native double */ -#if H5_SW_LDOUBLE_TO_INTEGER_WORKS || H5_SW_INTEGER_TO_LDOUBLE_WORKS H5T_t *native_ldouble=NULL; /* Datatype structure for native double */ -#endif /*H5_SW_LDOUBLE_TO_INTEGER_WORKS || H5_SW_INTEGER_TO_LDOUBLE_WORKS */ H5T_t *std_u8le=NULL; /* Datatype structure for unsigned 8-bit little-endian integer */ H5T_t *std_u8be=NULL; /* Datatype structure for unsigned 8-bit big-endian integer */ H5T_t *std_u16le=NULL; /* Datatype structure for unsigned 16-bit little-endian integer */ @@ -999,7 +997,11 @@ H5T_init_interface(void) /* floating point */ #if H5_CONVERT_DENORMAL_FLOAT status |= H5T_register(H5T_PERS_HARD, "flt_dbl", native_float, native_double, H5T_conv_float_double, H5AC_dxpl_id); + status |= H5T_register(H5T_PERS_HARD, "flt_ldbl", native_float, native_ldouble, H5T_conv_float_ldouble, H5AC_dxpl_id); status |= H5T_register(H5T_PERS_HARD, "dbl_flt", native_double, native_float, H5T_conv_double_float, H5AC_dxpl_id); + status |= H5T_register(H5T_PERS_HARD, "dbl_ldbl", native_double, native_ldouble, H5T_conv_double_ldouble, H5AC_dxpl_id); + status |= H5T_register(H5T_PERS_HARD, "ldbl_flt", native_ldouble, native_float, H5T_conv_ldouble_float, H5AC_dxpl_id); + status |= H5T_register(H5T_PERS_HARD, "ldbl_dbl", native_ldouble, native_double, H5T_conv_ldouble_double, H5AC_dxpl_id); #endif /*H5_CONVERT_DENORMAL_FLOAT*/ /* from long_long */ |