Simplify handling of negative numbers in add(…) function.