Skip to content

Commit 790ccfb

Browse files
committed
gh-141370: document undefined behavior of Py_ABS()
1 parent 9ce99c6 commit 790ccfb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/c-api/intro.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ complete listing.
119119

120120
.. c:macro:: Py_ABS(x)
121121
122-
Return the absolute value of ``x``.
122+
Return the absolute value of ``x``. If the result cannot be represented in
123+
same type, the behavior is undefined.
123124

124125
.. versionadded:: 3.3
125126

0 commit comments

Comments
 (0)