Since valid unique IDs are guaranteed not to be zero (can't find it in the
docs, but it says so in the code), how about
if (0 == recID) {
}
Matt
----- Original Message -----
From: "Aaron Ardiri" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Friday, September 06, 2002 11:05 AM
Subject: Re: Unsigned Ints and -1
> > The code might work, but the interpretation is not what you expect and
could
> > cause further errors. Your code is equivalent to:
> >
> > UInt32 recID = 4294967295;
> > if (recID == 4294967295 ) {
> > ...
>
> how about:
>
> if (recID == (UInt32)-1)
> {
> }
>
> and, remove any confusion? :)
>
> ---
> Aaron Ardiri
> CEO - CTO
> Mobile Wizardry
> http://www.mobilewizardry.com/
>
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/