RFR: 8312121: Fix -Wconversion warnings in tribool.hpp [v4]

David Holmes dholmes at openjdk.org
Wed Jul 26 05:35:51 UTC 2023


On Wed, 26 Jul 2023 04:31:11 GMT, Dean Long <dlong at openjdk.org> wrote:

> We don't need the & 3 if we do something like:
> 
> `_value = newval ? 3 : 2;`

That seems a lot better/clearer than casts and bit-wise operations.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/14892#issuecomment-1651006722


More information about the hotspot-dev mailing list