From b59d07624c090235f3232529616458f11fb5b5c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20M=C3=A4kel=C3=A4?= Date: Wed, 21 Apr 2021 12:34:54 +0300 Subject: 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. --- storage/perfschema/pfs_engine_table.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'storage/perfschema') 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; } -- cgit v1.2.1