On Thu Sep 12 08:31:57 2024 +0000, Dmitry Timoshkov wrote:
Of course it's the same thing, hence the suggestion. It's clearly wrong to assign a signed value to a variable of an unsigned type.
Well, if you want to be absolutely strict, ~0 is still signed, so you have to use ~0u (which is inconvenient because then you have to use the exactly right suffix for the variable type).