On Sunday, 12 November 2017 at 13:34:50 UTC, Dmitry Olshansky wrote:if (a & (flag1 | flag2)) toif ((a & (flag1 | flag2)) != 0) When the first is quite obvious.Just change the typing of the if-conditional to: if (boolean|integral) {…}
There's no force change. if explicitly converts cond to bool.