The condition is inverted, diff indicates with a 1 bit what direction changed.