>-----Original Message----- >From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] >Sent: 18 September 2006 18:10 >To: Microcontroller discussion list - Public. >Subject: Re: [PIC] C18 compiler issue with casting > > >If you expect "char" to be signed, use "signed char". C does >not specify whether plain "char" is signed or unsigned. > 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 ======================================================================= This e-mail is intended for the person it is addressed to only. The information contained in it may be confidential and/or protected by law. If you are not the intended recipient of this message, you must not make any use of this information, or copy or show it to any person. Please contact us immediately to tell us that you have received this e-mail, and return the original to us. Any use, forwarding, printing or copying of this message is strictly prohibited. No part of this message can be considered a request for goods or services. ======================================================================= -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist