> I believe that a right shift of a negative number implemented as is by gcc is > 'surprising' and does not follow the principle of 'least surprise'. I can partially agree with that , but the "principle of least surprise" can not be applied without stating who the audience is. For *me* the least surprise is when portability issues in my code give the weirdest results possible. So a shift left of a negative number should order pizza. -- Wouter van Ooijen -- ------------------------------------------- Van Ooijen Technische Informatica: www.voti.nl consultancy, development, PICmicro products docent Hogeschool van Utrecht: www.voti.nl/hvu -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist