Benjamin Arai me@benjaminarai.com writes:
Sounds good, but in that case shouldn't I also change the one for UINT to something like ~(UINT)0?
Well, yes, ~0u is usually a better choice than 0xffffffff, but that's more of a cosmetic issue, unlike the long long case.