Yes, many compilers will give you a warning about comparing signed to unsigned. You really just shouldn't do it! If you think about what happens at the hardware level, where the comparison is basically a subtraction, you can't properly interpret the flags (C and = Z on a PIC) set by the comparison. -- Bob Ammerman RAm Systems -----Original Message----- From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf Of Electron Sent: Friday, May 02, 2014 10:43 AM To: Microcontroller discussion list - Public.; Microcontroller discussion list - Public. Subject: [OT] Why on earth??!? Hello! a is a signed int and contains -100 b is an unsigned int and contains 500 a