]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-114388: Fix warnings when assign an unsigned integer member (GH-114391...
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 4 Feb 2024 17:21:05 +0000 (19:21 +0200)
committerGitHub <noreply@github.com>
Sun, 4 Feb 2024 17:21:05 +0000 (17:21 +0000)
commitb9937a6f22d3a3b555ec34321acfac189e79a842
tree8c4ceca403ddca7c3580926f9a927f654c14e699
parent4548ae7e65a919516939548932644a16a2bdc329
[3.12] gh-114388: Fix warnings when assign an unsigned integer member (GH-114391) (GH-115001)

* 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