On 3/5/21 7:06 AM, Ivan A. Melnikov wrote:
Especially since, as far as I remeber, comparing unsigned value with -1 (which is int) is UB.
It is certainly not undefined behaviour. The defined behaviour is to promote to the common type, which will do exactly what we want.
r~
