Skip to content

Commit

Permalink
Add support for ctypes.c_bool on opposite endian systems
Browse files Browse the repository at this point in the history
  • Loading branch information
zbarnett committed Nov 26, 2024
1 parent 4fd9eb2 commit 99d064a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Lib/ctypes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,8 @@ class c_void_p(_SimpleCData):

class c_bool(_SimpleCData):
_type_ = "?"
c_bool.__ctype_le__ = c_bool.__ctype_be__ = c_bool
_check_size(c_bool)

from _ctypes import POINTER, pointer, _pointer_type_cache

Expand Down

0 comments on commit 99d064a

Please sign in to comment.