summaryrefslogtreecommitdiffstats
path: root/src/H5MM.c
diff options
context:
space:
mode:
authorLarry Knox <lrknox@hdfgroup.org>2023-03-24 23:42:46 (GMT)
committerGitHub <noreply@github.com>2023-03-24 23:42:46 (GMT)
commit43e4e64d886e9072a6075c6369e84c0e273fa44f (patch)
treea65896c37e5af4919e8cb169c2b40c44ad07017e /src/H5MM.c
parent3fa338013907494ccfe93b8e22d89185a39067ff (diff)
downloadhdf5-43e4e64d886e9072a6075c6369e84c0e273fa44f.zip
hdf5-43e4e64d886e9072a6075c6369e84c0e273fa44f.tar.gz
hdf5-43e4e64d886e9072a6075c6369e84c0e273fa44f.tar.bz2
1 10 revert 2615 (#2629)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'src/H5MM.c')
-rw-r--r--src/H5MM.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5MM.c b/src/H5MM.c
index ad55132..69029b4 100644
--- a/src/H5MM.c
+++ b/src/H5MM.c
@@ -151,7 +151,7 @@ H5MM__sanity_check_block(const H5MM_block_t *block)
HDassert(block->u.info.size > 0);
HDassert(block->u.info.in_use);
/* Check for head & tail guards, if not head of linked list */
- if (block->u.info.size != SIZE_MAX) {
+ if (block->u.info.size != SIZET_MAX) {
HDassert(0 == HDmemcmp(block->b, H5MM_block_head_guard_s, H5MM_HEAD_GUARD_SIZE));
HDassert(0 == HDmemcmp(block->b + H5MM_HEAD_GUARD_SIZE + block->u.info.size, H5MM_block_tail_guard_s,
H5MM_TAIL_GUARD_SIZE));
@@ -266,7 +266,7 @@ H5MM_malloc(size_t size)
H5MM_memcpy(H5MM_block_head_s.sig, H5MM_block_signature_s, H5MM_SIG_SIZE);
H5MM_block_head_s.next = &H5MM_block_head_s;
H5MM_block_head_s.prev = &H5MM_block_head_s;
- H5MM_block_head_s.u.info.size = SIZE_MAX;
+ H5MM_block_head_s.u.info.size = SIZET_MAX;
H5MM_block_head_s.u.info.in_use = TRUE;
H5MM_init_s = TRUE;