diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2004-10-21 16:04:08 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2004-10-21 16:04:08 (GMT) |
commit | cacc8fa4c6bd301339ce78e8ab41a31ab8bdf654 (patch) | |
tree | f364eb370caa3dff914522121a67cc8f4e297c20 /src/H5Tpkg.h | |
parent | 229d19bc72ee1775c19428a46ac8e89618cfdb0b (diff) | |
download | hdf5-cacc8fa4c6bd301339ce78e8ab41a31ab8bdf654.zip hdf5-cacc8fa4c6bd301339ce78e8ab41a31ab8bdf654.tar.gz hdf5-cacc8fa4c6bd301339ce78e8ab41a31ab8bdf654.tar.bz2 |
[svn-r9445] Purpose: Bug fix
Description: "char" was considered as always "signed char" in data type conversion. However, ISO C leaves
the definition of "char" to individual implementation. i.e. for IBM AIX C compiler, it's treated as "unsigned
char".
Solution: Changed all "char" to "signed char". Don't even do "char" anymore because its definition is up
to each vendor.
Platforms tested: h5committest
Diffstat (limited to 'src/H5Tpkg.h')
-rw-r--r-- | src/H5Tpkg.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/H5Tpkg.h b/src/H5Tpkg.h index 2993f2f..f1c71c9 100644 --- a/src/H5Tpkg.h +++ b/src/H5Tpkg.h @@ -857,12 +857,12 @@ H5_DLL herr_t H5T_conv_double_float(hid_t src_id, hid_t dst_id, size_t buf_stride, size_t bkg_stride, void *buf, void *bkg, hid_t dset_xfer_plist); -H5_DLL herr_t H5T_conv_char_float(hid_t src_id, hid_t dst_id, +H5_DLL herr_t H5T_conv_schar_float(hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts, size_t buf_stride, size_t bkg_stride, void *buf, void *bkg, hid_t dset_xfer_plist); -H5_DLL herr_t H5T_conv_char_double(hid_t src_id, hid_t dst_id, +H5_DLL herr_t H5T_conv_schar_double(hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts, size_t buf_stride, size_t bkg_stride, void *buf, void *bkg, @@ -959,7 +959,7 @@ H5_DLL herr_t H5T_conv_ullong_double(hid_t src_id, hid_t dst_id, void *buf, void *bkg, hid_t dset_xfer_plist); #endif /* H5_ULLONG_TO_FP_CAST_WORKS */ -H5_DLL herr_t H5T_conv_float_char(hid_t src_id, hid_t dst_id, +H5_DLL herr_t H5T_conv_float_schar(hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts, size_t buf_stride, size_t bkg_stride, void *buf, void *bkg, @@ -1009,7 +1009,7 @@ H5_DLL herr_t H5T_conv_float_ullong(hid_t src_id, hid_t dst_id, size_t buf_stride, size_t bkg_stride, void *buf, void *bkg, hid_t dset_xfer_plist); -H5_DLL herr_t H5T_conv_double_char(hid_t src_id, hid_t dst_id, +H5_DLL herr_t H5T_conv_double_schar(hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts, size_t buf_stride, size_t bkg_stride, void *buf, void *bkg, |