mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
Fix issue #3547: ctypes is confused by bitfields of varying integer types
Reviewed by Fredrik Lundh and Skip Montanaro.
This commit is contained in:
parent
8798c90df2
commit
a85c95d5e8
3 changed files with 19 additions and 1 deletions
|
|
@ -163,7 +163,7 @@ CField_FromDesc(PyObject *desc, Py_ssize_t index,
|
|||
break;
|
||||
|
||||
case EXPAND_BITFIELD:
|
||||
/* XXX needs more */
|
||||
*poffset += dict->size - *pfield_size/8;
|
||||
*psize += dict->size - *pfield_size/8;
|
||||
|
||||
*pfield_size = dict->size * 8;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue