diff options
author | Filipe LaĆns <lains@riseup.net> | 2021-02-28 22:43:19 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-28 22:43:19 (GMT) |
commit | 0d7ad9fb38c041c46094087b0cf2c8ce44916b11 (patch) | |
tree | e0d20ee25c2d74126a6e4b4c3c1638e54c27806c /Misc/NEWS.d | |
parent | af5fa13ef6f648fc7a7a33a7556db13887e7d643 (diff) | |
download | cpython-0d7ad9fb38c041c46094087b0cf2c8ce44916b11.zip cpython-0d7ad9fb38c041c46094087b0cf2c8ce44916b11.tar.gz cpython-0d7ad9fb38c041c46094087b0cf2c8ce44916b11.tar.bz2 |
bpo-29753: fix merging packed bitfields in ctypes struct/union (GH-19850)
From the commit message:
> When the structure is packed we should always expand when needed,
> otherwise we will add some padding between the fields. This patch makes
> sure we always merge bitfields together. It also changes the field merging
> algorithm so that it handles bitfields correctly.
Automerge-Triggered-By: GH:jaraco
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r-- | Misc/NEWS.d/next/Library/2020-05-02-01-01-30.bpo-29753.n2M-AF.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2020-05-02-01-01-30.bpo-29753.n2M-AF.rst b/Misc/NEWS.d/next/Library/2020-05-02-01-01-30.bpo-29753.n2M-AF.rst new file mode 100644 index 0000000..f2a2842 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2020-05-02-01-01-30.bpo-29753.n2M-AF.rst @@ -0,0 +1 @@ +In ctypes, now packed bitfields are calculated properly and the first item of packed bitfields is now shrank correctly. |