diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2012-10-16 02:17:17 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2012-10-16 02:17:17 (GMT) |
commit | 5683217169b9d427d9cf01e99f4539fbef47522b (patch) | |
tree | 82739ade7fbe91aa3458736b5191e1fe2670b142 | |
parent | 0725d04506a4534b368c9ac1289bb7e7d3e2d798 (diff) | |
download | hdf5-5683217169b9d427d9cf01e99f4539fbef47522b.zip hdf5-5683217169b9d427d9cf01e99f4539fbef47522b.tar.gz hdf5-5683217169b9d427d9cf01e99f4539fbef47522b.tar.bz2 |
[svn-r22901] Purpose:
Fixes a bug in H5Fsuper_cache.c where a logical AND was
used instead of a bitwise AND.
Tested on:
miette (Mac OS-X 10.8 / clang) (very minor change)
-rw-r--r-- | src/H5Fsuper_cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Fsuper_cache.c b/src/H5Fsuper_cache.c index af4e886..705507d 100644 --- a/src/H5Fsuper_cache.c +++ b/src/H5Fsuper_cache.c @@ -474,7 +474,7 @@ H5F_sblock_load(H5F_t *f, hid_t dxpl_id, haddr_t UNUSED addr, void *_udata) * as the file can appear truncated if only part of it has been * been flushed to disk by the single writer process.) */ - if (!(f->intent && H5F_ACC_SWMR_READ)) { + if (!(f->intent & H5F_ACC_SWMR_READ)) { if(HADDR_UNDEF == (eof = H5FD_get_eof(lf))) HGOTO_ERROR(H5E_FILE, H5E_CANTOPENFILE, NULL, "unable to determine file size") |