summaryrefslogtreecommitdiff
path: root/Doc
diff options
context:
space:
mode:
authorZackery Spytz <zspytz@gmail.com>2019-06-07 09:41:10 -0600
committerVictor Stinner <vstinner@redhat.com>2019-06-07 17:41:10 +0200
commite36ed475ea429f7cc80a4d65f80b44686a74b246 (patch)
tree10fde905cce142de868716059b0a1377618a5324 /Doc
parent4ea9dbda4ad823875ed79a25062a7f5415d91b22 (diff)
downloadcpython-git-e36ed475ea429f7cc80a4d65f80b44686a74b246.tar.gz
[3.7] bpo-37170: Fix the cast on error in PyLong_AsUnsignedLongLongMask() (GH-13860) (GH-13896)
(cherry picked from commit dc2476500d91082f0c907772c83a044bf49af279) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Diffstat (limited to 'Doc')
-rw-r--r--Doc/c-api/long.rst6
1 files changed, 4 insertions, 2 deletions
diff --git a/Doc/c-api/long.rst b/Doc/c-api/long.rst
index 5b1f386fb7..71144f16e3 100644
--- a/Doc/c-api/long.rst
+++ b/Doc/c-api/long.rst
@@ -259,7 +259,8 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
If the value of *obj* is out of range for an :c:type:`unsigned long`,
return the reduction of that value modulo ``ULONG_MAX + 1``.
- Returns ``-1`` on error. Use :c:func:`PyErr_Occurred` to disambiguate.
+ Returns ``(unsigned long)-1`` on error. Use :c:func:`PyErr_Occurred` to
+ disambiguate.
.. c:function:: unsigned long long PyLong_AsUnsignedLongLongMask(PyObject *obj)
@@ -271,7 +272,8 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
If the value of *obj* is out of range for an :c:type:`unsigned long long`,
return the reduction of that value modulo ``PY_ULLONG_MAX + 1``.
- Returns ``-1`` on error. Use :c:func:`PyErr_Occurred` to disambiguate.
+ Returns ``(unsigned long long)-1`` on error. Use :c:func:`PyErr_Occurred`
+ to disambiguate.
.. c:function:: double PyLong_AsDouble(PyObject *pylong)