summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/long.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-10-27 18:42:15 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-10-27 18:42:15 (GMT)
commit159f97b2d7aba6f2d5cdc7f6155298ca33626762 (patch)
tree5589522fd39e1c286838ba93491f3deecc69db98 /Doc/c-api/long.rst
parent0093907f0ed88c6aa3561cc4328154ae907bc976 (diff)
parent1ecf7d204dd3abb143f53851c31fefd4ef887314 (diff)
downloadcpython-159f97b2d7aba6f2d5cdc7f6155298ca33626762.zip
cpython-159f97b2d7aba6f2d5cdc7f6155298ca33626762.tar.gz
cpython-159f97b2d7aba6f2d5cdc7f6155298ca33626762.tar.bz2
Issue #28496: Mark up constants 0, 1 and -1 that denote return values or
special input values as literal text.
Diffstat (limited to 'Doc/c-api/long.rst')
-rw-r--r--Doc/c-api/long.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/c-api/long.rst b/Doc/c-api/long.rst
index bae9703..f592cb6 100644
--- a/Doc/c-api/long.rst
+++ b/Doc/c-api/long.rst
@@ -232,7 +232,7 @@ All integers are implemented as "long" integer objects of arbitrary size.
method (if present) to convert it to a :c:type:`PyLongObject`.
If the value of *obj* is out of range for an :c:type:`unsigned long`,
- return the reduction of that value modulo :const:`ULONG_MAX + 1`.
+ return the reduction of that value modulo ``ULONG_MAX + 1``.
.. c:function:: unsigned long long PyLong_AsUnsignedLongLongMask(PyObject *obj)
@@ -242,7 +242,7 @@ All integers are implemented as "long" integer objects of arbitrary size.
method (if present) to convert it to a :c:type:`PyLongObject`.
If the value of *obj* is out of range for an :c:type:`unsigned long long`,
- return the reduction of that value modulo :const:`PY_ULLONG_MAX + 1`.
+ return the reduction of that value modulo ``PY_ULLONG_MAX + 1``.
.. c:function:: double PyLong_AsDouble(PyObject *pylong)