Skip to content

Commit b59d076

Browse files
committed
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.
1 parent d104fe6 commit b59d076

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

storage/perfschema/pfs_engine_table.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ void PFS_table_context::set_item(ulong n)
220220
return;
221221
ulong word= n / m_word_size;
222222
ulong bit= n % m_word_size;
223-
m_map[word] |= (1 << bit);
223+
m_map[word] |= (1UL << bit);
224224
m_last_item= n;
225225
}
226226

0 commit comments

Comments
 (0)