Unverified Commit 2fbf4594 authored by Junmin Gu's avatar Junmin Gu Committed by GitHub
Browse files

Merge pull request #3640 from guj/bugfix

replaced uint with size_t 
parents 438277cd 59c589e9
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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))
    {
+2 −2
Original line number Diff line number Diff line
@@ -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);