Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
guj committed May 26, 2023
1 parent 438277c commit 59c589e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions source/h5vol/H5VolUtil.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,16 @@ void *safe_ralloc(void *ptr, size_t newsize, unsigned long line)
return p;
}

void gUtilConvert(hsize_t *fromH5, size_t *to, uint ndims)
void gUtilConvert(hsize_t *fromH5, size_t *to, size_t ndims)
{
uint i = 0;
size_t i = 0;
for (i = 0; i < ndims; i++)
{
to[i] = fromH5[i];
}
}

int gUtilADIOS2GetShape(hid_t space_id, size_t *shape, uint ndims)
int gUtilADIOS2GetShape(hid_t space_id, size_t *shape, size_t ndims)
{
if (gUtilADIOS2IsScalar(space_id))
{
Expand Down
4 changes: 2 additions & 2 deletions source/h5vol/H5VolUtil.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ int gUtilADIOS2GetDim(hid_t space_id);
// h5 uses hsize_t for dimensions (unsigned long long)
// adios uses size_t
//
void gUtilConvert(hsize_t *fromH5, size_t *to, uint ndims);
void gUtilConvert(hsize_t *fromH5, size_t *to, size_t ndims);

int gUtilADIOS2GetShape(hid_t space_id, size_t *shape, uint ndims);
int gUtilADIOS2GetShape(hid_t space_id, size_t *shape, size_t ndims);

int gUtilADIOS2GetBlockInfo(hid_t hyperSlab_id, size_t *start, size_t *count,
hsize_t ndims);
Expand Down

0 comments on commit 59c589e

Please sign in to comment.