[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...)
This commit is contained in:
Quincey Koziol 2000-06-06 13:24:51 -05:00
parent f3abf1f345
commit ae635d079e

View File

@ -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) {