summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2021-04-21 12:34:54 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2021-04-21 12:34:54 +0300
commitb59d07624c090235f3232529616458f11fb5b5c5 (patch)
tree42cb32db447c6505945d7ef6f40b63050c0ccb13
parentd104fe6f734df2aebe24b3e5e3dbc189a5302920 (diff)
downloadmariadb-git-b59d07624c090235f3232529616458f11fb5b5c5.tar.gz
WITH_UBSAN: shift is too large for 32-bit int
As suggested by Vladislav Vaintroub, we must shift a constant of unsigned long, not int.
-rw-r--r--storage/perfschema/pfs_engine_table.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/perfschema/pfs_engine_table.cc b/storage/perfschema/pfs_engine_table.cc
index 77573f8f168..20df5f31dc4 100644
--- a/storage/perfschema/pfs_engine_table.cc
+++ b/storage/perfschema/pfs_engine_table.cc
@@ -220,7 +220,7 @@ void PFS_table_context::set_item(ulong n)
return;
ulong word= n / m_word_size;
ulong bit= n % m_word_size;
- m_map[word] |= (1 << bit);
+ m_map[word] |= (1UL << bit);
m_last_item= n;
}