summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2015-12-28 17:17:53 -0500
committerKeith Bostic <keith@wiredtiger.com>2015-12-28 17:17:53 -0500
commit40a7cd9c58c6a51583a9f4f11155826cdc5bc910 (patch)
tree513daf60dee27fc7c1b5914d7801aa0fc878cac1
parent6df6c29e777b27fa32ad025b92e4da157ef6d8d4 (diff)
downloadmongo-40a7cd9c58c6a51583a9f4f11155826cdc5bc910.tar.gz
suggest parentheses around '&&' within '||' [-Werror=parentheses]
-rw-r--r--src/btree/bt_curnext.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/btree/bt_curnext.c b/src/btree/bt_curnext.c
index d2e659fca78..6573bc60165 100644
--- a/src/btree/bt_curnext.c
+++ b/src/btree/bt_curnext.c
@@ -459,7 +459,7 @@ __cursor_key_order_check_col(
}
if (cbt->lastrecno == WT_RECNO_OOB ||
- next && cmp < 0 || !next && cmp > 0) {
+ (next && cmp < 0) || (!next && cmp > 0)) {
cbt->lastrecno = cbt->recno;
return (0);
}
@@ -493,7 +493,7 @@ __cursor_key_order_check_row(
WT_RET(__wt_compare(
session, btree->collator, cbt->lastkey, key, &cmp));
- if (cbt->lastkey->size == 0 || next && cmp < 0 || !next && cmp > 0)
+ if (cbt->lastkey->size == 0 || (next && cmp < 0) || (!next && cmp > 0))
return (__wt_buf_set(session, cbt->lastkey,
cbt->iface.key.data, cbt->iface.key.size));