[cfe-users] -Wconversion does not produce warnings when it should
Sven Köhler via cfe-users
cfe-users at lists.llvm.org
Mon Nov 16 12:47:19 PST 2020
Hi,
> even though the two operands of the bitwise-or are both uint16_t.
That's not true. I had many more versions of the test code before I
posted here and I got confused. In testa4, the operands of the
bitwise-or are both ints due to the bitshift which performs and integer
promotion.
Kind Regards,
Sven
More information about the cfe-users
mailing list