On Sunday, 12 November 2017 at 16:00:28 UTC, Ola Fosheim Grøstad wrote:
On Sunday, 12 November 2017 at 13:34:50 UTC, Dmitry Olshansky wrote:
if (a & (flag1 | flag2))

to

if ((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.

Reply via email to