RFR: 8312121: Fix -Wconversion warnings in tribool.hpp [v4]
Dean Long
dlong at openjdk.org
Wed Jul 26 04:51:49 UTC 2023
On Wed, 26 Jul 2023 03:51:26 GMT, David Holmes <dholmes at openjdk.org> wrote:
> Is the `& 3` still needed with the extra u1 cast? I'm gonna guess yes as a u1 doesn't fit in a uchar:2 any better than a uint does.
Good question. I got this to work:
`_value = ((u1)newval | 2u);`
but it requires gcc 11.3.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/14892#issuecomment-1650975096
More information about the hotspot-dev
mailing list