On 09-Mar-21 11:44 PM, Tyler Retzlaff wrote:
use ~0ULL instead of -1ULL to avoid contridctory application of '-' sign
to integer literal where the desired type is unsigned.

Signed-off-by: Tyler Retzlaff <roret...@linux.microsoft.com>
---

Not sure i agree. It's a very common pattern and is widely used and understood. I mean, if anything, seeing `~0` would have me stop and think as i've literally never seen such code before.

--
Thanks,
Anatoly

Reply via email to