summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2016-01-04 20:56:08 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2016-01-04 20:56:08 (GMT)
commitcdc21e0cb2d8a987790660b660a56744d54c5bed (patch)
tree3b3fedac57273e67974c6d3fb65438c7822f27d5
parent064b2f6dd85330a7e06f07c5fd2b8b26c29c8f28 (diff)
downloadhdf5-cdc21e0cb2d8a987790660b660a56744d54c5bed.zip
hdf5-cdc21e0cb2d8a987790660b660a56744d54c5bed.tar.gz
hdf5-cdc21e0cb2d8a987790660b660a56744d54c5bed.tar.bz2
[svn-r28790] Description:
Correct non-portable 'SIZE_T_MAX' to 'SIZET_MAX'. Tested on: Linux/32 2.6.x (jam) w/default compilers (h5committest forthcoming)
-rw-r--r--src/H5MM.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5MM.c b/src/H5MM.c
index 05bfb9e..b6e77eb 100644
--- a/src/H5MM.c
+++ b/src/H5MM.c
@@ -157,7 +157,7 @@ H5MM__sanity_check_block(const H5MM_block_t *block)
HDassert(block->size > 0);
HDassert(block->in_use);
/* Check for head & tail guards, if not head of linked list */
- if(block->size != SIZE_T_MAX) {
+ if(block->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->size, H5MM_block_tail_guard_s, H5MM_TAIL_GUARD_SIZE));
}
@@ -251,7 +251,7 @@ H5MM_malloc(size_t size)
HDmemcpy(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.size = SIZE_T_MAX;
+ H5MM_block_head_s.size = SIZET_MAX;
H5MM_block_head_s.in_use = TRUE;
H5MM_init_s = TRUE;