From 3d1ed0e92a95248f242b7cc15f00a56b4d9cd15e Mon Sep 17 00:00:00 2001 From: Marc Howison Date: Fri, 19 Jun 2009 22:34:22 +0000 Subject: [PATCH] found incorrect == comparison with read flag; replaced with & --- src/H5Part.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/H5Part.c b/src/H5Part.c index 96d8ea0..618a794 100644 --- a/src/H5Part.c +++ b/src/H5Part.c @@ -1604,7 +1604,7 @@ _H5Part_set_step ( f->groupname_step, f->stepno_width, (long long) step ); } - if ( (f->mode != H5PART_READ) && _H5Part_have_group ( f->file, name ) ) { + if ( (!(f->mode & H5PART_READ)) && _H5Part_have_group ( f->file, name ) ) { return HANDLE_H5PART_STEP_EXISTS_ERR ( step ); } @@ -1615,7 +1615,7 @@ _H5Part_set_step ( f->timegroup = -1; f->timestep = step; - if( f->mode == H5PART_READ ) { + if( f->mode & H5PART_READ ) { _H5Part_print_info ( "Proc[%d]: Set step to #%lld for file %lld", f->myproc,