From 7e7e5513e1a66163b88bc82a8d88563baddc3560 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Fri, 30 Jan 1998 09:19:34 -0500 Subject: [svn-r201] Changed H5Pget/set_hyperslab to final consensus types: int for offset and size_t for count & stride. --- src/H5P.c | 10 +++++----- src/H5Ppublic.h | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/H5P.c b/src/H5P.c index 08b4679..fad7918 100644 --- a/src/H5P.c +++ b/src/H5P.c @@ -937,7 +937,7 @@ H5Pset_space(hid_t sid, int rank, const size_t *dims) USAGE herr_t H5Pset_hyperslab(sid, start, count, stride) hid_t sid; IN: Dataspace object to select hyperslab from - const size_t *start; IN: Starting location for hyperslab to select + const int *start; IN: Starting location for hyperslab to select const size_t *count; IN: Number of elements in hyperslab const size_t *stride; IN: Packing of elements in hyperslab RETURNS @@ -952,7 +952,7 @@ H5Pset_space(hid_t sid, int rank, const size_t *dims) datasets which extend in arbitrary directions. --------------------------------------------------------------------------*/ herr_t -H5Pset_hyperslab(hid_t sid, const intn *start, const intn *count, const intn *stride) +H5Pset_hyperslab(hid_t sid, const int *start, const size_t *count, const size_t *stride) { H5P_t *space = NULL; /* dataspace to modify */ intn *tmp_stride=NULL; /* temp. copy of stride */ @@ -1037,8 +1037,8 @@ done: *------------------------------------------------------------------------- */ int -H5Pget_hyperslab (hid_t sid, int offset[]/*out*/, int size[]/*out*/, - int stride[]/*out*/) +H5Pget_hyperslab (hid_t sid, int offset[]/*out*/, size_t size[]/*out*/, + size_t stride[]/*out*/) { const H5P_t *ds = NULL; intn ret_value = FAIL; @@ -1079,7 +1079,7 @@ H5Pget_hyperslab (hid_t sid, int offset[]/*out*/, int size[]/*out*/, */ intn H5P_get_hyperslab (const H5P_t *ds, int offset[]/*out*/, - int size[]/*out*/, int stride[]/*out*/) + size_t size[]/*out*/, size_t stride[]/*out*/) { intn i; intn ret_value = FAIL; diff --git a/src/H5Ppublic.h b/src/H5Ppublic.h index f76e0e7..26e70e6 100644 --- a/src/H5Ppublic.h +++ b/src/H5Ppublic.h @@ -43,10 +43,10 @@ int H5Pget_ndims (hid_t space_id); int H5Pget_dims (hid_t space_id, size_t dims[]); hbool_t H5Pis_simple (hid_t space_id); herr_t H5Pset_space (hid_t space_id, int rank, const size_t *dims); -herr_t H5Pset_hyperslab(hid_t sid, const int *start, const int *count, - const int *stride); +herr_t H5Pset_hyperslab(hid_t sid, const int *start, const size_t *count, + const size_t *stride); int H5Pget_hyperslab (hid_t sid, int offset[]/*out*/, - int size[]/*out*/, int stride[]/*out*/); + size_t size[]/*out*/, size_t stride[]/*out*/); #ifdef __cplusplus } -- cgit v0.12