Some explicit casts to avoid warnings on old GCC

This commit is contained in:
Daniel James
2018-01-10 11:35:42 +00:00
parent dea525b2b7
commit f3476de893

View File

@ -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;
} }