forked from boostorg/unordered
Some explicit casts to avoid warnings on old GCC
This commit is contained in:
@ -2832,7 +2832,7 @@ namespace boost {
|
|||||||
void cleanup_spare_functions()
|
void cleanup_spare_functions()
|
||||||
{
|
{
|
||||||
if (current_ & 2) {
|
if (current_ & 2) {
|
||||||
current_ &= 1;
|
current_ = static_cast<unsigned char>(current_ & 1);
|
||||||
destroy_functions(current_ ^ 1);
|
destroy_functions(current_ ^ 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2840,7 +2840,7 @@ namespace boost {
|
|||||||
void switch_functions()
|
void switch_functions()
|
||||||
{
|
{
|
||||||
BOOST_ASSERT(current_ & 2);
|
BOOST_ASSERT(current_ & 2);
|
||||||
destroy_functions(current_ & 1);
|
destroy_functions(static_cast<unsigned char>(current_ & 1));
|
||||||
current_ ^= 3;
|
current_ ^= 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user