On 04/02/16 11:46, Andreas Schwab wrote: > Alan Hourihane <alanh@fairlite.co.uk> writes: > >> Right, actually it looks like it depends on the compiler and whether it >> promotes the operation to 'unsigned'. > No, promotions are defined by the C standard. > Well, just done it here and unless I explicitly cast the operation, it becomes unsigned. Alan.