summaryrefslogtreecommitdiffstats
path: root/test/dt_arith.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 /test/dt_arith.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 'test/dt_arith.c')
-rw-r--r--test/dt_arith.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/dt_arith.c b/test/dt_arith.c
index c9af208..f49b2f2 100644
--- a/test/dt_arith.c
+++ b/test/dt_arith.c
@@ -611,7 +611,7 @@ test_hard_query(void)
/* Unregister the hard conversion from int to float. Verify the conversion
* is a soft conversion. */
- H5Tunregister(H5T_PERS_HARD, NULL, H5T_NATIVE_INT, H5T_NATIVE_FLOAT, NULL);
+ H5Tunregister(H5T_PERS_HARD, NULL, H5T_NATIVE_INT, H5T_NATIVE_FLOAT, H5T_conv_int_float);
if((ret = H5Tcompiler_conv(H5T_NATIVE_INT, H5T_NATIVE_FLOAT))!=FALSE) {
H5_FAILED();
printf("Can't query conversion function\n");