]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-114388: Fix warnings when assign an unsigned integer member (GH-114391)
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 4 Feb 2024 15:32:25 +0000 (17:32 +0200)
committerGitHub <noreply@github.com>
Sun, 4 Feb 2024 15:32:25 +0000 (17:32 +0200)
commit3ddc5152550ea62280124c37d0b4339030ff7df4
tree234c903580e7b9d97240b288dc4a48ff671e29fe
parent0ea366240b75380ed7568acbe95d72e481a734f7
gh-114388: Fix warnings when assign an unsigned integer member (GH-114391)

* 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.
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