Yep, the manual states that a 'char' defaults to signed, unless you add a -k to the command line (or have the "treat 'char' as unsigned" box ticked like I did). Of course "signed" should be used in the typedef for portability. Ken ________________________________________ "Well that never happened in any of the simulations" klumia@adelphia.net ----- Original Message ----- From: "Michael Rigby-Jones" To: "Microcontroller discussion list - Public." Sent: Monday, September 18, 2006 1:17 PM Subject: RE: [PIC] C18 compiler issue with casting > > I think it's configurable via the compiler command line. I always use the > exact width integer types defined in to prevent this kind of > problem. > > Regards > > Mike -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist