diff options
author | Thomas Heller <theller@ctypes.org> | 2008-01-16 20:34:37 (GMT) |
---|---|---|
committer | Thomas Heller <theller@ctypes.org> | 2008-01-16 20:34:37 (GMT) |
commit | 0f75f9847a178e93cde056a4d889260698cd9471 (patch) | |
tree | d336cccf26047bd555b779f31c1d1d2e2af0d016 /Lib/ctypes | |
parent | 2077131097c02e3b517b244958e4b94e37779780 (diff) | |
download | cpython-0f75f9847a178e93cde056a4d889260698cd9471.zip cpython-0f75f9847a178e93cde056a4d889260698cd9471.tar.gz cpython-0f75f9847a178e93cde056a4d889260698cd9471.tar.bz2 |
Use 'g' instead of 'D' as the ctypes typecode for c_longdouble, for
compliance with PEP 3118.
Diffstat (limited to 'Lib/ctypes')
-rw-r--r-- | Lib/ctypes/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/ctypes/__init__.py b/Lib/ctypes/__init__.py index 1500896..897f51a 100644 --- a/Lib/ctypes/__init__.py +++ b/Lib/ctypes/__init__.py @@ -185,7 +185,7 @@ class c_double(_SimpleCData): _check_size(c_double) class c_longdouble(_SimpleCData): - _type_ = "D" + _type_ = "g" if sizeof(c_longdouble) == sizeof(c_double): c_longdouble = c_double |