summaryrefslogtreecommitdiffstats
path: root/Doc/library/ctypes.rst
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-06-02 19:17:51 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2016-06-02 19:17:51 (GMT)
commitd85a1e6b552cd2700500a97d82c3f3ce4cfdeed6 (patch)
treedf78c820eb17e290777d161f6efc4f4047c92037 /Doc/library/ctypes.rst
parenta49ccf2113085f74f4ce6a84c19f2aaaff9f5978 (diff)
downloadcpython-d85a1e6b552cd2700500a97d82c3f3ce4cfdeed6.zip
cpython-d85a1e6b552cd2700500a97d82c3f3ce4cfdeed6.tar.gz
cpython-d85a1e6b552cd2700500a97d82c3f3ce4cfdeed6.tar.bz2
Issue #16192: Clarify when c_int is an alias to c_long in ctypes documentation
Diffstat (limited to 'Doc/library/ctypes.rst')
-rw-r--r--Doc/library/ctypes.rst9
1 files changed, 4 insertions, 5 deletions
diff --git a/Doc/library/ctypes.rst b/Doc/library/ctypes.rst
index 1d45a37..521b8b9 100644
--- a/Doc/library/ctypes.rst
+++ b/Doc/library/ctypes.rst
@@ -20,11 +20,10 @@ Note: The code samples in this tutorial use :mod:`doctest` to make sure that
they actually work. Since some code samples behave differently under Linux,
Windows, or Mac OS X, they contain doctest directives in comments.
-Note: Some code samples reference the ctypes :class:`c_int` type. This type is
-an alias for the :class:`c_long` type on 32-bit systems. So, you should not be
-confused if :class:`c_long` is printed if you would expect :class:`c_int` ---
-they are actually the same type.
-
+Note: Some code samples reference the ctypes :class:`c_int` type. On platforms
+where ``sizeof(long double) == sizeof(double)`` it is an alias to
+:class:`c_double`. So, you should not be confused if :class:`c_long` is
+printed if you would expect :class:`c_int` --- they are actually the same type.
.. _ctypes-loading-dynamic-link-libraries: