diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2005-09-14 21:54:19 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2005-09-14 21:54:19 (GMT) |
commit | 1143f47e2d560a5283c24b42a64b9587f5613fab (patch) | |
tree | b09ca96ea8a803db310c12ebd4ee583c572fe2bf /src/H5Pdcpl.c | |
parent | f7c075c736d3a4615cc78308111c235a91dbdc5d (diff) | |
download | hdf5-1143f47e2d560a5283c24b42a64b9587f5613fab.zip hdf5-1143f47e2d560a5283c24b42a64b9587f5613fab.tar.gz hdf5-1143f47e2d560a5283c24b42a64b9587f5613fab.tar.bz2 |
[svn-r11415] Purpose: Internal design change.
Description: H5T_register() replaces any existing data conversion path
with a new path.
Solution: Added a parameter to H5T_register() and H5T_path_find() to
signal the library whether the new conversion path is from API function
H5Tregister() or from private function like H5T_init_interface(). If it
is from H5Tregister(), replace existing path. If it's from H5T_init_interface()
and the library is trying to register default hard conversion functions,
don't replace existing path because the path is registered by the library.
For example, the library registered H5T_conv_int_float() and is trying to
register H5T_conv_long_float(). The size of long is equal to int. There's
no need to replace the path H5T_conv_int_float().
Platforms tested: h5committest and fuss.
Diffstat (limited to 'src/H5Pdcpl.c')
-rw-r--r-- | src/H5Pdcpl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Pdcpl.c b/src/H5Pdcpl.c index 34935b9..05d3c16 100644 --- a/src/H5Pdcpl.c +++ b/src/H5Pdcpl.c @@ -1517,7 +1517,7 @@ H5Pget_fill_value(hid_t plist_id, hid_t type_id, void *value/*out*/) /* * Can we convert between the source and destination data types? */ - if(NULL==(tpath=H5T_path_find(fill.type, type, NULL, NULL, H5AC_dxpl_id))) + if(NULL==(tpath=H5T_path_find(fill.type, type, NULL, NULL, H5AC_dxpl_id, FALSE))) HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "unable to convert between src and dst data types"); src_id = H5I_register(H5I_DATATYPE, H5T_copy (fill.type, H5T_COPY_TRANSIENT)); if (src_id<0) |