Skip to contentSkip to conversation

FS: reiser4, add parenths around !X & Y

PATCH New Jiri Slaby 1 participant 1 message Aug 22, 2009

lore
Share & tools
lore

Jiri Slaby

author
#0 lore raw

PATCH 1/1 FS: reiser4, add parenths around !X & Y

Change !X & Y to !(X & Y) to avoid compiler confusion and fix a bug.

---
 fs/reiser4/carry_ops.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
fs/reiser4/carry_ops.c +2 -2
index 4ed55dc..0906dbd 100644
@@ -79,7 +79,7 @@ static carry_node *find_left_neighbor(carry_op * op	/* node to find left
 	left->free = 1;
 
 	flags = GN_TRY_LOCK;
-	if (!op->u.insert.flags & COPI_LOAD_LEFT)
+	if (!(op->u.insert.flags & COPI_LOAD_LEFT))
 		flags |= GN_NO_ALLOC;
 
 	/* then, feeling lucky, peek left neighbor in the cache. */
@@ -203,7 +203,7 @@ static carry_node *find_right_neighbor(carry_op * op	/* node to find right
 	read_unlock_tree(tree);
 
 	flags = GN_CAN_USE_UPPER_LEVELS;
-	if (!op->u.insert.flags & COPI_LOAD_RIGHT)
+	if (!(op->u.insert.flags & COPI_LOAD_RIGHT))
 		flags = GN_NO_ALLOC;
 
 	/* then, try to lock right neighbor */
Signature · 1 line
1.6.3.3