Commit b59d0762 authored by Marko Mäkelä's avatar Marko Mäkelä

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.
parent d104fe6f
...@@ -220,7 +220,7 @@ void PFS_table_context::set_item(ulong n) ...@@ -220,7 +220,7 @@ void PFS_table_context::set_item(ulong n)
return; return;
ulong word= n / m_word_size; ulong word= n / m_word_size;
ulong bit= n % m_word_size; ulong bit= n % m_word_size;
m_map[word] |= (1 << bit); m_map[word] |= (1UL << bit);
m_last_item= n; m_last_item= n;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment