[interp] use mask instead of bool expression (mono/mono#17683)
authorBernhard Urban-Forster <lewurm@gmail.com>
Mon, 4 Nov 2019 14:56:46 +0000 (15:56 +0100)
committerGitHub <noreply@github.com>
Mon, 4 Nov 2019 14:56:46 +0000 (15:56 +0100)
commit6be23cfb3282db0c23fd0db228350f3b06c3bb6e
treee40e749054ec5a6c1d546ea7e3298c61f44f67b9
parent3f4761229164efea3d11164a50855b9579f4d21c
[interp] use mask instead of bool expression (mono/mono#17683)

Discovered by Coverity:
```
>>>     CID 1455205:    (CONSTANT_EXPRESSION_RESULT)
>>>     The expression "flag && 2" is suspicious because it performs a
        Boolean operation on a constant other than 0 or 1.
```

Commit migrated from https://github.com/mono/mono/commit/237f210ea24cbc201b8746fb0003cf7bec8b97b0
src/mono/mono/mini/interp/interp.c