Andrew Talbot wrote: > Andrew Talbot wrote: > >> (The reason I say >> "decimal zero" is because decimal constants are signed, whereas >> hexadecimal constants are unsigned[!] Thus, ~0x0 would be a viable >> alternative.) >> > > In fact, I have just tried both ~0 and ~0x0 and neither worked. (I can't > figure out why the latter fails.) But -1u works, yes. >
Sorry for the noise, but just to say I was wrong in claiming that hex constants are unsigned. I have opted for ~0U in try #2. Thanks, -- Andy.
