diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2022-07-11 22:48:51 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-11 22:48:51 (GMT) |
commit | af014fa61c1ffcf5a09d68e357b0190fe8ee0efa (patch) | |
tree | 2eaa1714a38e3450c2c82127b94c4a513449f548 /src/H5VM.c | |
parent | dae60641036f73c64f3592317405550246464be5 (diff) | |
download | hdf5-af014fa61c1ffcf5a09d68e357b0190fe8ee0efa.zip hdf5-af014fa61c1ffcf5a09d68e357b0190fe8ee0efa.tar.gz hdf5-af014fa61c1ffcf5a09d68e357b0190fe8ee0efa.tar.bz2 |
Removes definitions for (U)LLONG_MAX and (S)SIZET_MAX (#1877)
LLONG_MAX and ULLONG_MAX are defined in limits.h in C99. SIZET_MAX
should be SIZE_MAX, which has been around forever. SSIZET_MAX should
be SSIZE_MAX, which is defined whereever ssize_t is found. I've kept
the definition for SSIZE_MAX (renamed from SSIZET_MAX) for platforms
where ssize_T is not present (e.g., Windows).
Diffstat (limited to 'src/H5VM.c')
-rw-r--r-- | src/H5VM.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -605,7 +605,7 @@ H5VM_stride_fill(unsigned n, hsize_t elmt_size, const hsize_t *size, const hsize FUNC_ENTER_NOAPI_NOINIT_NOERR - HDassert(elmt_size < SIZET_MAX); + HDassert(elmt_size < SIZE_MAX); H5VM_vector_cpy(n, idx, size); nelmts = H5VM_vector_reduce_product(n, size); @@ -663,7 +663,7 @@ H5VM_stride_copy(unsigned n, hsize_t elmt_size, const hsize_t *size, const hsize FUNC_ENTER_NOAPI_NOINIT_NOERR - HDassert(elmt_size < SIZET_MAX); + HDassert(elmt_size < SIZE_MAX); if (n) { H5VM_vector_cpy(n, idx, size); @@ -729,7 +729,7 @@ H5VM_stride_copy_s(unsigned n, hsize_t elmt_size, const hsize_t *size, const hss FUNC_ENTER_NOAPI_NOINIT_NOERR - HDassert(elmt_size < SIZET_MAX); + HDassert(elmt_size < SIZE_MAX); if (n) { H5VM_vector_cpy(n, idx, size); @@ -794,7 +794,7 @@ H5VM__stride_copy2(hsize_t nelmts, hsize_t elmt_size, unsigned dst_n, const hsiz FUNC_ENTER_PACKAGE_NOERR - HDassert(elmt_size < SIZET_MAX); + HDassert(elmt_size < SIZE_MAX); HDassert(dst_n > 0); HDassert(src_n > 0); @@ -858,8 +858,8 @@ H5VM_array_fill(void *_dst, const void *src, size_t size, size_t count) HDassert(dst); HDassert(src); - HDassert(size < SIZET_MAX && size > 0); - HDassert(count < SIZET_MAX && count > 0); + HDassert(size < SIZE_MAX && size > 0); + HDassert(count < SIZE_MAX && count > 0); H5MM_memcpy(dst, src, size); /* copy first item */ |