mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-04-18 17:40:55 +08:00
[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:
parent
f3abf1f345
commit
ae635d079e
15
src/H5AC.c
15
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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user