Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 98281ce + 490cf44 commit c2d90fbCopy full SHA for c2d90fb
1 file changed
Doc/library/ctypes.rst
@@ -608,6 +608,13 @@ for debugging because they can provide useful information::
608
609
.. _ctypes-structureunion-alignment-byte-order:
610
611
+.. warning::
612
+
613
+ :mod:`ctypes` does not support passing unions or structures with bit-fields
614
+ to functions by value. While this may work on 32-bit x86, it's not
615
+ guaranteed by the library to work in the general case. Unions and
616
+ structures with bit-fields should always be passed to functions by pointer.
617
618
Structure/union alignment and byte order
619
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
620
0 commit comments