Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 99d064a

Browse filesBrowse files
committed
Add support for ctypes.c_bool on opposite endian systems
1 parent 4fd9eb2 commit 99d064a
Copy full SHA for 99d064a

File tree

1 file changed

+2
-0
lines changed
Filter options

1 file changed

+2
-0
lines changed

‎Lib/ctypes/__init__.py

Copy file name to clipboardExpand all lines: Lib/ctypes/__init__.py
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,8 @@ class c_void_p(_SimpleCData):
263263

264264
class c_bool(_SimpleCData):
265265
_type_ = "?"
266+
c_bool.__ctype_le__ = c_bool.__ctype_be__ = c_bool
267+
_check_size(c_bool)
266268

267269
from _ctypes import POINTER, pointer, _pointer_type_cache
268270

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.