On Thursday 27 October 2005 09:37 pm, Joshua Hoblitt wrote:
> On Thu, Oct 27, 2005 at 11:22:40PM +0200, Leopold Toetsch wrote:
> > On Oct 27, 2005, at 22:31, Nick Glencross wrote:
> > >There are a few cases of -1 being assigned to unsigneds. Anyone know
> > >if that's deliberate?
> >
> > Yup. Some special out-of-band values.
>
> I suspect that gcc4 will give a warning on that.  Wouldn't UINT_MAX or
> ULONG_MAX be slightly more correct?

or ~0U / ~0UL. Again pretty much the same thing, but it shouts "magic value" 
loudest to me.

Andrew

Reply via email to