From a456729c4bd230d0cd7ec90a47f3036476fd4f79 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Thu, 21 Jul 2011 09:59:52 -0500 Subject: [svn-r21138] Description: Bring r21137 from trunk to 1.8 branch: Tiny change to reduce code coupling w/H5F package. Tested on: FreeBSD/32 8.2 (loyalty) w/debug (too minor to require h5committest) --- src/H5AC.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/H5AC.c b/src/H5AC.c index a26d586..a462ac6 100644 --- a/src/H5AC.c +++ b/src/H5AC.c @@ -950,7 +950,7 @@ H5AC_insert_entry(H5F_t *f, hid_t dxpl_id, const H5AC_class_t *type, haddr_t add HDassert(thing); /* Check for invalid access request */ - if(0 == (f->intent & H5F_ACC_RDWR)) + if(0 == (H5F_INTENT(f) & H5F_ACC_RDWR)) HGOTO_ERROR(H5E_CACHE, H5E_BADVALUE, FAIL, "no write intent on file") #if H5AC__TRACE_FILE_ENABLED @@ -1267,7 +1267,7 @@ H5AC_protect(H5F_t *f, HDassert(H5F_addr_defined(addr)); /* Check for invalid access request */ - if(0 == (f->intent & H5F_ACC_RDWR) && rw == H5AC_WRITE) + if(0 == (H5F_INTENT(f) & H5F_ACC_RDWR) && rw == H5AC_WRITE) HGOTO_ERROR(H5E_CACHE, H5E_BADVALUE, NULL, "no write intent on file") #if H5AC__TRACE_FILE_ENABLED -- cgit v0.12