diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2000-06-06 18:24:51 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2000-06-06 18:24:51 (GMT) |
commit | ae635d079e9a473471947652602babb016d8ade4 (patch) | |
tree | 828726d7171d49fc4d56139aae3c8d1062e3ecfa /src | |
parent | f3abf1f3457a879ae698fecce4da16aeb9dc1734 (diff) | |
download | hdf5-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.c | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -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) { |