Forgive my ignorance but I don't see what type of casting I could do to
prevent this sign extension. I tried:

WChar        w;
Char            c;

w = ( WChar ) c;

to no avail, 0xEC became 0xFFEC. So in the end I added:

w &= 0x00FF;

w = (WChar)(unsigned char)c;


will do it nicely.

--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com



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

Reply via email to