Skip to content

[3.12] gh-114388: Fix warnings when assign an unsigned integer member (GH-114391) - #115001

Merged
serhiy-storchaka merged 1 commit into
python:3.12from
serhiy-storchaka:backport-3ddc515-3.12
Feb 4, 2024
Merged

serhiy-storchaka merged 1 commit into
python:3.12from
serhiy-storchaka:backport-3ddc515-3.12

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Feb 4, 2024 •

Copy link
Copy Markdown
Member
  • 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 3ddc515)

…member (pythonGH-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.
(cherry picked from commit 3ddc515)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant