Bill, Thanks. That was the problem. Excuse me while I hide under my desk for the rest of the afternoon. How embarrassing. Ken. _______________________________________ "Well that never happened in any of the simulations" klumia@adelphia.net >> >> typedef char INT_8; > ^^^^^^^^^^^^^^^^^^^^^^ > > I'm not familiar with C18, but is a "char" a signed 8-bit quantity or an > unsigned 8-bit quantity? It is is signed, you would expect the VC++ > behavior. If it is unsigned, you would get the C18 behavior. > > Try > typedef signed char INT_8; > and see if that fixes your problem. > > Bill > > -- > Psst... Hey, you... Buddy... Want a kitten? straycatblues.petfinder.org > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist