diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2024-02-04 17:54:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-04 17:54:26 (GMT) |
commit | 0244e96d107833da7b91e0ec5d4c79109e4624ed (patch) | |
tree | 57b48da0675e3851ecade97f9b30afc076466b2d /Misc | |
parent | f18341fa4e6612ee72657fc2238f0e4271867c61 (diff) | |
download | cpython-0244e96d107833da7b91e0ec5d4c79109e4624ed.zip cpython-0244e96d107833da7b91e0ec5d4c79109e4624ed.tar.gz cpython-0244e96d107833da7b91e0ec5d4c79109e4624ed.tar.bz2 |
[3.11] gh-114388: Fix warnings when assign an unsigned integer member (GH-114391) (GH-115002)
* Fix a RuntimeWarning emitted when assign an integer-like value that
is not an instance of int to an attribute that corresponds to a C
struct member of type T_UINT and T_ULONG.
* Fix a double RuntimeWarning emitted when assign a negative integer value
to an attribute that corresponds to a C struct member of type T_UINT.
(cherry picked from commit 3ddc5152550ea62280124c37d0b4339030ff7df4)
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2024-01-21-17-29-32.gh-issue-114388.UVGO4K.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2024-01-21-17-29-32.gh-issue-114388.UVGO4K.rst b/Misc/NEWS.d/next/Core and Builtins/2024-01-21-17-29-32.gh-issue-114388.UVGO4K.rst new file mode 100644 index 0000000..97e2d48 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2024-01-21-17-29-32.gh-issue-114388.UVGO4K.rst @@ -0,0 +1,5 @@ +Fix a :exc:`RuntimeWarning` emitted when assign an integer-like value that +is not an instance of :class:`int` to an attribute that corresponds to a C +struct member of type T_UINT and T_ULONG. Fix a +double :exc:`RuntimeWarning` emitted when assign a negative integer value to +an attribute that corresponds to a C struct member of type T_UINT. |