]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-114388: Fix warnings when assign an unsigned integer member (GH-114391...
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 4 Feb 2024 17:54:26 +0000 (19:54 +0200)
committerGitHub <noreply@github.com>
Sun, 4 Feb 2024 17:54:26 +0000 (17:54 +0000)
commit0244e96d107833da7b91e0ec5d4c79109e4624ed
tree57b48da0675e3851ecade97f9b30afc076466b2d
parentf18341fa4e6612ee72657fc2238f0e4271867c61
[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)
Lib/test/test_capi/test_structmembers.py
Misc/NEWS.d/next/Core and Builtins/2024-01-21-17-29-32.gh-issue-114388.UVGO4K.rst [new file with mode: 0644]
Python/structmember.c