summaryrefslogtreecommitdiffstats
path: root/src/H5Ofill.c
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2005-09-14 21:54:19 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2005-09-14 21:54:19 (GMT)
commit1143f47e2d560a5283c24b42a64b9587f5613fab (patch)
treeb09ca96ea8a803db310c12ebd4ee583c572fe2bf /src/H5Ofill.c
parentf7c075c736d3a4615cc78308111c235a91dbdc5d (diff)
downloadhdf5-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/H5Ofill.c')
-rw-r--r--src/H5Ofill.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Ofill.c b/src/H5Ofill.c
index 32b772f..d0bf381 100644
--- a/src/H5Ofill.c
+++ b/src/H5Ofill.c
@@ -836,7 +836,7 @@ H5O_fill_convert(void *_fill, H5T_t *dset_type, hid_t dxpl_id)
/*
* Can we convert between source and destination data types?
*/
- if (NULL==(tpath=H5T_path_find(fill->type, dset_type, NULL, NULL, dxpl_id)))
+ if (NULL==(tpath=H5T_path_find(fill->type, dset_type, NULL, NULL, dxpl_id, FALSE)))
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "unable to convert between src and dst datatypes")
/* Don't bother doing anything if there will be no actual conversion */