Fix |= operation on a bool

Bitwise OR operates on ints. It's slow (casts required) and unsafe.