summaryrefslogtreecommitdiffstats
path: root/src/H5Pdcpl.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2005-09-01 22:46:16 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2005-09-01 22:46:16 (GMT)
commit90103afad6237862caa8fe02e80c57d9515e2b30 (patch)
tree4c7c784f181b7a4c8f45b0262ed648b588d9a7ad /src/H5Pdcpl.c
parentfc90c784e1b114079038484f1825ac53987c6b44 (diff)
downloadhdf5-90103afad6237862caa8fe02e80c57d9515e2b30.zip
hdf5-90103afad6237862caa8fe02e80c57d9515e2b30.tar.gz
hdf5-90103afad6237862caa8fe02e80c57d9515e2b30.tar.bz2
[svn-r11337] Purpose:
Code cleanup Description: Changed some scale+offset filter symbols from H5_SO_... -> H5Z_SO_... to indicate that they are in the H5Z package. Platforms tested: FreeBSD 4.11 (sleipnir) Too minor to require h5committest
Diffstat (limited to 'src/H5Pdcpl.c')
-rw-r--r--src/H5Pdcpl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Pdcpl.c b/src/H5Pdcpl.c
index 6981686..34935b9 100644
--- a/src/H5Pdcpl.c
+++ b/src/H5Pdcpl.c
@@ -1293,7 +1293,7 @@ done:
*-------------------------------------------------------------------------
*/
herr_t
-H5Pset_scaleoffset(hid_t plist_id, H5_SO_scale_type scale_type, int scale_factor)
+H5Pset_scaleoffset(hid_t plist_id, H5Z_SO_scale_type_t scale_type, int scale_factor)
{
H5O_pline_t pline;
H5P_genplist_t *plist; /* Property list pointer */
@@ -1307,7 +1307,7 @@ H5Pset_scaleoffset(hid_t plist_id, H5_SO_scale_type scale_type, int scale_factor
if(TRUE != H5P_isa_class(plist_id, H5P_DATASET_CREATE))
HGOTO_ERROR (H5E_ARGS, H5E_BADTYPE, FAIL, "not a dataset creation property list");
- if(scale_type!=0 && scale_type!=1 && scale_type!=2)
+ if(scale_type!=H5Z_SO_FLOAT_DSCALE && scale_type!=H5Z_SO_FLOAT_ESCALE && scale_type!=H5Z_SO_INT)
HGOTO_ERROR (H5E_ARGS, H5E_BADTYPE, FAIL, "invalid scale type");
/* Get the plist structure */