Hi, > We shift on unsigned ints but not signed ints in our code > generation. (I just checked) It's easy to add one if the value was odd before shifting (using carry)... ----- Best regards, Philippe. http://www.pmpcomp.fr Pic Micro Pascal for all! -- View this message in context: http://www.nabble.com/C-arithmetic-conversion-integer-promotion-etc.-tp21948440p21971464.html Sent from the PIC - [PIC] mailing list archive at Nabble.com. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist