> From: Mark Perri [mailto:mperri@UCLINK4.BERKELEY.EDU] > Sent: Tuesday, October 08, 2002 11:31 AM > > It might depend on the compiler, but at least in CCS I think > an int is 8 > bits and > a long is 16. > > Mark > > > >int is a signed 16-bit number and unsigned char is an unsigned 8-bit > >number. I > >don't think that's your problem, but it could come back to > haunt you some time > >later. It does depend upon the compiler. ANSI C does not specify the bit count of each type, and not all compilers comply with ANSI anyway. The compiler that is being used by the original poster is Hi-Tech C. They implement a 16-bit int. -Mike -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu