Skip to content

Commit

Permalink
Use bitwise not
Browse files Browse the repository at this point in the history
  • Loading branch information
ellert committed Feb 6, 2017
1 parent ae42952 commit b6ac123
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/XrdClient/XrdClient.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1372,15 +1372,15 @@ bool XrdClient::OpenFileWhenRedirected(char *newfhandle, bool &wasopen)
Info(XrdClientDebug::kHIDEBUG,
"OpenFileWhenRedirected", "Stripping off the 'delete' option." );

options &= !kXR_delete;
options &= ~kXR_delete;
options |= kXR_open_updt;
}

if (fOpenPars.options & kXR_new) {
Info(XrdClientDebug::kHIDEBUG,
"OpenFileWhenRedirected", "Stripping off the 'new' option." );

options &= !kXR_new;
options &= ~kXR_new;
options |= kXR_open_updt;
}

Expand Down

0 comments on commit b6ac123

Please sign in to comment.