summaryrefslogtreecommitdiffstats
path: root/src/H5HG.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2013-05-29 00:16:59 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2013-05-29 00:16:59 (GMT)
commitcf0c06c96228f2b04305bb05d582f42741e81268 (patch)
treed66c4511d795b73e96ca303c40bb35dac33faadf /src/H5HG.c
parent530208b86c520b663efcc05835baa273b1991ccb (diff)
downloadhdf5-cf0c06c96228f2b04305bb05d582f42741e81268.zip
hdf5-cf0c06c96228f2b04305bb05d582f42741e81268.tar.gz
hdf5-cf0c06c96228f2b04305bb05d582f42741e81268.tar.bz2
[svn-r23719] Description:
Bring r23713 and r23717 from trunk to 1.8 branch: Clean up warnings, switch library code to use Standard C/POSIX wrapper macros, remove internal calls to API routines, update checkapi and checkposix scripts. Tested on: Mac OSX/64 10.8.3 (amazon) w/C++ & FORTRAN Big-Endian Linux/64 (ostrich)
Diffstat (limited to 'src/H5HG.c')
-rw-r--r--src/H5HG.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/H5HG.c b/src/H5HG.c
index 3bf2b8f..6776307 100644
--- a/src/H5HG.c
+++ b/src/H5HG.c
@@ -191,7 +191,7 @@ HDmemset(heap->chunk, 0, size);
/* The freespace object */
heap->obj[0].size = size - H5HG_SIZEOF_HDR(f);
- assert(H5HG_ISALIGNED(heap->obj[0].size));
+ HDassert(H5HG_ISALIGNED(heap->obj[0].size));
heap->obj[0].nrefs = 0;
heap->obj[0].begin = p;
UINT16ENCODE(p, 0); /*object ID*/
@@ -372,7 +372,7 @@ H5HG_alloc(H5F_t *f, H5HG_heap_t *heap, size_t size, unsigned *heap_flags_ptr)
UINT16ENCODE(p, 0); /*nrefs*/
UINT32ENCODE(p, 0); /*reserved*/
H5F_ENCODE_LENGTH (f, p, heap->obj[0].size);
- assert(H5HG_ISALIGNED(heap->obj[0].size));
+ HDassert(H5HG_ISALIGNED(heap->obj[0].size));
} /* end else-if */
else {
/*
@@ -381,7 +381,7 @@ H5HG_alloc(H5F_t *f, H5HG_heap_t *heap, size_t size, unsigned *heap_flags_ptr)
*/
heap->obj[0].size -= need;
heap->obj[0].begin += need;
- assert(H5HG_ISALIGNED(heap->obj[0].size));
+ HDassert(H5HG_ISALIGNED(heap->obj[0].size));
}
/* Mark the heap as dirty */
@@ -475,7 +475,7 @@ HDmemset(new_chunk + heap->size, 0, need);
UINT16ENCODE(p, 0); /*nrefs*/
UINT32ENCODE(p, 0); /*reserved*/
H5F_ENCODE_LENGTH(f, p, heap->obj[0].size);
- assert(H5HG_ISALIGNED(heap->obj[0].size));
+ HDassert(H5HG_ISALIGNED(heap->obj[0].size));
/* Resize the heap in the cache */
if(H5AC_resize_entry(heap, heap->size) < 0)