diff options
author | Thomas Heller <theller@ctypes.org> | 2008-09-24 19:01:29 (GMT) |
---|---|---|
committer | Thomas Heller <theller@ctypes.org> | 2008-09-24 19:01:29 (GMT) |
commit | 1308c26cf4cd930f3774cf6f35ae1e3c483d9718 (patch) | |
tree | 354b02c57db1e52cb33d07564e4063242ec930b7 /Modules | |
parent | 05f5ab7ee39b16bdd7fda23b3276d52b8c2b4acb (diff) | |
download | cpython-1308c26cf4cd930f3774cf6f35ae1e3c483d9718.zip cpython-1308c26cf4cd930f3774cf6f35ae1e3c483d9718.tar.gz cpython-1308c26cf4cd930f3774cf6f35ae1e3c483d9718.tar.bz2 |
Merged revisions 66611 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r66611 | thomas.heller | 2008-09-24 20:26:05 +0200 (Mi, 24 Sep 2008) | 3 lines
Fix issue #3547: ctypes is confused by bitfields of varying integer types
Reviewed by Fredrik Lundh and Skip Montanaro.
........
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_ctypes/cfield.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_ctypes/cfield.c b/Modules/_ctypes/cfield.c index beca018..9040dbb 100644 --- a/Modules/_ctypes/cfield.c +++ b/Modules/_ctypes/cfield.c @@ -159,7 +159,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; |