Hello,

your code snippets is non portable and bad code.

UInt32 SPECIAL_VALUE = -1;

means on some plateforms UInt32 SPECIAL_VALUE = 65535; (this is the case on
CW / PalmOS when you choose 16 bits ints)

usually moving that to
UInt32 SPECIAL_VALUE = (UInt32)-1L;
is better. At least, it will work on most known actual platforms.

(notice the L which means long, so long representation which is 32 bits at
least on nearly all platforms I know)

it is yet non absolutely reliable, but the better I think.

Wish it helps.


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to