Slight change to prevent sign(x) from breaking on unsigned values