Fix less-than-zero checks on unsigned numbers