Use bitwise OR for flag updates