summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2020-02-27 17:51:59 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2020-02-27 17:51:59 +0200
commita263ca26db7e3545bc07e8593137e933fc9f4346 (patch)
treeecd31aecd1620f92ac35e564a8e30da4e9a05bb8
parent138cbec5f2300bd5b401e83802642c1806264992 (diff)
downloadmariadb-git-a263ca26db7e3545bc07e8593137e933fc9f4346.tar.gz
Fix GCC -Wparentheses
-rw-r--r--storage/innobase/page/page0cur.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/innobase/page/page0cur.cc b/storage/innobase/page/page0cur.cc
index d04ec647750..dc2ee2b1df7 100644
--- a/storage/innobase/page/page0cur.cc
+++ b/storage/innobase/page/page0cur.cc
@@ -2660,7 +2660,7 @@ corrupted:
buf+= hdr_c;
*buf++= (enc_hdr_l & 3) << 4; /* info_bits; n_owned=0 */
*buf++= static_cast<byte>(h >> 5); /* MSB of heap number */
- h= (h & (1U << 5) - 1) << 3;
+ h= (h & ((1U << 5) - 1)) << 3;
static_assert(REC_STATUS_ORDINARY == 0, "compatibility");
static_assert(REC_STATUS_INSTANT == 4, "compatibility");
if (page_is_leaf(block.frame))