summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorZackery Spytz <zspytz@gmail.com>2019-06-06 20:39:23 (GMT)
committerVictor Stinner <vstinner@redhat.com>2019-06-06 20:39:23 (GMT)
commitdc2476500d91082f0c907772c83a044bf49af279 (patch)
tree72075b673111fc2ef0dd389d31e3a2918dd1730c /Doc/c-api
parentf6713e84afc5addcfa8477dbdf2c027787f711c0 (diff)
downloadcpython-dc2476500d91082f0c907772c83a044bf49af279.zip
cpython-dc2476500d91082f0c907772c83a044bf49af279.tar.gz
cpython-dc2476500d91082f0c907772c83a044bf49af279.tar.bz2
bpo-37170: Fix the cast on error in PyLong_AsUnsignedLongLongMask() (GH-13860)
Diffstat (limited to 'Doc/c-api')
-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 6be29f9..fdaefaf 100644
--- a/Doc/c-api/long.rst
+++ b/Doc/c-api/long.rst
@@ -288,7 +288,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.
.. versionchanged:: 3.8
Use :meth:`__index__` if available.
@@ -307,7 +308,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.
.. versionchanged:: 3.8
Use :meth:`__index__` if available.