summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2000-06-06 18:24:51 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2000-06-06 18:24:51 (GMT)
commitae635d079e9a473471947652602babb016d8ade4 (patch)
tree828726d7171d49fc4d56139aae3c8d1062e3ecfa /src
parentf3abf1f3457a879ae698fecce4da16aeb9dc1734 (diff)
downloadhdf5-ae635d079e9a473471947652602babb016d8ade4.zip
hdf5-ae635d079e9a473471947652602babb016d8ade4.tar.gz
hdf5-ae635d079e9a473471947652602babb016d8ade4.tar.bz2
[svn-r2343] *sigh* Corrected H5AC_compare again. (Trying to fix a bug which only is
manifesting on Windows, so it's a bit of a remote-control problem...)
Diffstat (limited to 'src')
-rw-r--r--src/H5AC.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/H5AC.c b/src/H5AC.c
index 5f22c7b..00ecf0e 100644
--- a/src/H5AC.c
+++ b/src/H5AC.c
@@ -311,11 +311,16 @@ H5AC_compare(const void *_a, const void *_b)
assert(current_cache_g);
- if(NULL==current_cache_g->slot[a]) {
- if (NULL == current_cache_g->slot[b]) {
- return 0;
- } else {
- return -1;
+ if(NULL==current_cache_g->slot[a] || NULL == current_cache_g->slot[b]) {
+ if(NULL==current_cache_g->slot[a]) {
+ if (NULL == current_cache_g->slot[b]) {
+ return 0;
+ } else {
+ return -1;
+ }
+ }
+ else {
+ return 1;
}
}
else if (NULL == current_cache_g->slot[a]->type) {