Skip to content

Commit 1a6c130

Browse files
committed
perfschema: use correct type for left shifts
set_item() uses 1UL << bit, so is_set_item() must do the same. This fixes sporadic perfschema.show_aggregate failures (sporadic, because `bit` is the thread id, so depending on how many tests were run before perfschema.show_aggregate it can be above or below 32).
1 parent 42e9506 commit 1a6c130

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
@@ -226,7 +226,7 @@ bool PFS_table_context::is_item_set(ulong n)
226226
{
227227
ulong word= n / m_word_size;
228228
ulong bit= n % m_word_size;
229-
return (m_map[word] & (1 << bit));
229+
return (m_map[word] & (1UL << bit));
230230
}
231231

232232

0 commit comments

Comments
 (0)