summaryrefslogtreecommitdiffstats
path: root/src/H5HG.c
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2009-07-13 15:39:05 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2009-07-13 15:39:05 (GMT)
commit75800cf6b5724a7b19fe37017f559fffdcf52d6c (patch)
tree0c09462bc8969ea3000c663bfdc540be34f54571 /src/H5HG.c
parentb50178ea1a00b36e0491e00bbb84dcf0ed862d29 (diff)
downloadhdf5-75800cf6b5724a7b19fe37017f559fffdcf52d6c.zip
hdf5-75800cf6b5724a7b19fe37017f559fffdcf52d6c.tar.gz
hdf5-75800cf6b5724a7b19fe37017f559fffdcf52d6c.tar.bz2
[svn-r17176] In H5Odtype.c, the decoding function used to mark the datatype as on disk. I changed it
to undefined and let the caller functions decide the location of the datatype. For H5Tdecode, it should mark the datatype as in memory. For other callers like H5Dopen or H5Aopen, they should makr it as on disk. Tested it on jam, smirom, linew.
Diffstat (limited to 'src/H5HG.c')
-rw-r--r--src/H5HG.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/H5HG.c b/src/H5HG.c
index b5f8988..48e68b0 100644
--- a/src/H5HG.c
+++ b/src/H5HG.c
@@ -321,6 +321,8 @@ H5HG_alloc (H5F_t *f, H5HG_heap_t *heap, size_t size, unsigned * heap_flags_ptr)
break;
} /* end else */
+ HDassert(idx < heap->nused);
+
/* Check if we need more room to store heap objects */
if(idx>=heap->nalloc) {
size_t new_alloc; /* New allocation number */