Skip to content

Commit d546e81

Browse files
committed
The copysign function does not need to check errno.
1 parent ead2720 commit d546e81

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Modules/mathmodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,7 +1017,7 @@ math_1a(PyObject *arg, double (*func) (double), const char *err_msg)
10171017
The last rule is used to catch overflow on platforms which follow
10181018
C89 but for which HUGE_VAL is not an infinity.
10191019
1020-
For most two-argument functions (copysign, fmod, hypot)
1020+
For most two-argument functions (fmod, hypot)
10211021
these rules are enough to ensure that Python's functions behave as
10221022
specified in 'Annex F' of the C99 standard, with the 'invalid' and
10231023
'divide-by-zero' floating-point exceptions mapping to Python's
@@ -1206,7 +1206,7 @@ math_ceil(PyObject *module, PyObject *number)
12061206
return PyLong_FromDouble(ceil(x));
12071207
}
12081208

1209-
FUNC2(copysign, copysign,
1209+
FUNC2NE(copysign, copysign,
12101210
"copysign($module, x, y, /)\n--\n\n"
12111211
"Return a float with the magnitude (absolute value) of x but the sign of y.\n\n"
12121212
"On platforms that support signed zeros, copysign(1.0, -0.0)\n"

0 commit comments

Comments
 (0)