summaryrefslogtreecommitdiffstats
path: root/src/H5Ztrans.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2004-06-14 19:32:02 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2004-06-14 19:32:02 (GMT)
commitef01629bb29800c8837a261b85897570e4c092c1 (patch)
treed83127b519689f70929ac4feec2b3716d06addcd /src/H5Ztrans.c
parentf5a192ff0d3d8f4279b356ff54b1a2e78e22c8ec (diff)
downloadhdf5-ef01629bb29800c8837a261b85897570e4c092c1.zip
hdf5-ef01629bb29800c8837a261b85897570e4c092c1.tar.gz
hdf5-ef01629bb29800c8837a261b85897570e4c092c1.tar.bz2
[svn-r8683] Purpose:
Code optimization Description: Use 'size_t' instead of 'hsize_t' to track the number of elements in memory buffers, especially for type conversion. Platforms tested: Solaris 2.7 (arabica) FreeBSD 4.10 (sleipnir) w/parallel Too minor to require h5committest
Diffstat (limited to 'src/H5Ztrans.c')
-rw-r--r--src/H5Ztrans.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/H5Ztrans.c b/src/H5Ztrans.c
index 705fd3d..b7f242c 100644
--- a/src/H5Ztrans.c
+++ b/src/H5Ztrans.c
@@ -91,7 +91,7 @@ static H5Z_node *H5Z_parse_factor(H5Z_token *current);
static H5Z_node *H5Z_new_node(H5Z_token_type type);
static void H5Z_do_op(H5Z_node* tree);
static hid_t H5Z_xform_find_type(const H5T_t* type);
-static H5Z_result H5Z_eval_full(H5Z_node *tree, void* array, hsize_t array_size, hid_t array_type);
+static H5Z_result H5Z_eval_full(H5Z_node *tree, void* array, size_t array_size, hid_t array_type);
static void H5Z_xform_destroy_parse_tree(H5Z_node *tree);
static void* H5Z_xform_parse(const char *expression);
static void* H5Z_xform_copy_tree(H5Z_node* tree);
@@ -722,7 +722,7 @@ done:
/*-------------------------------------------------------------------------
- * Function: H5Z_eval_full
+ * Function: H5Z_xform_eval
* Purpose: If the transform is trivial, this function applies it.
* Otherwise, it calls H5Z_xform_eval_full to do the full
* transform.
@@ -734,11 +734,11 @@ done:
*-------------------------------------------------------------------------
*/
-herr_t H5Z_xform_eval(const H5Z_data_xform_t *data_xform_prop, void* array, hsize_t array_size, const H5T_t *buf_type)
+herr_t H5Z_xform_eval(const H5Z_data_xform_t *data_xform_prop, void* array, size_t array_size, const H5T_t *buf_type)
{
H5Z_node *tree;
hid_t array_type;
- unsigned int i;
+ size_t i;
int n;
float f;
H5Z_result res;
@@ -822,11 +822,11 @@ done:
*-------------------------------------------------------------------------
*/
static H5Z_result
-H5Z_eval_full(H5Z_node *tree, void* array, hsize_t array_size, hid_t array_type)
+H5Z_eval_full(H5Z_node *tree, void* array, size_t array_size, hid_t array_type)
{
H5Z_result res, resl, resr, ret_value, error;
- unsigned int i;
+ size_t i;
error.type = H5Z_XFORM_ERROR;