diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2004-01-19 20:59:55 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2004-01-19 20:59:55 (GMT) |
commit | 0a3c3620730264cfa0f647ac47412038b9b8b4db (patch) | |
tree | d53f09e441dc1f21a376aa6d00fbb54bc88e9536 /src/H5D.c | |
parent | 01f079c241f0b9cc366e01e5e769457ba795fd73 (diff) | |
download | hdf5-0a3c3620730264cfa0f647ac47412038b9b8b4db.zip hdf5-0a3c3620730264cfa0f647ac47412038b9b8b4db.tar.gz hdf5-0a3c3620730264cfa0f647ac47412038b9b8b4db.tar.bz2 |
[svn-r8083] Purpose:
Bug fix
Description:
Tweak address comparison of external file list's heap address a bit to
pacify Windows.
Platforms tested:
FreeBSD 4.9 (sleipnir)
Asking Pedro to test on Windows
Too minor to require h5committest
Diffstat (limited to 'src/H5D.c')
-rw-r--r-- | src/H5D.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -659,8 +659,12 @@ H5D_crt_ext_file_list_cmp(const void *value1, const void *value2, size_t size) assert(size==sizeof(H5O_efl_t)); /* Check the heap address of external file lists */ - if((cmp_value=H5F_addr_cmp(efl1->heap_addr,efl2->heap_addr))!=0) - HGOTO_DONE(cmp_value); + if(H5F_addr_defined(efl1->heap_addr) || H5F_addr_defined(efl2->heap_addr)) { + if(!H5F_addr_defined(efl1->heap_addr) && H5F_addr_defined(efl2->heap_addr)) HGOTO_DONE(-1); + if(H5F_addr_defined(efl1->heap_addr) && !H5F_addr_defined(efl2->heap_addr)) HGOTO_DONE(1); + if((cmp_value=H5F_addr_cmp(efl1->heap_addr,efl2->heap_addr))!=0) + HGOTO_DONE(cmp_value); + } /* end if */ /* Check the number of allocated efl entries */ if(efl1->nalloc < efl2->nalloc) HGOTO_DONE(-1); |