]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-99845: Change _PyDict_KeysSize() return type to size_t (#99848)
authorVictor Stinner <vstinner@python.org>
Tue, 29 Nov 2022 11:12:17 +0000 (12:12 +0100)
committerGitHub <noreply@github.com>
Tue, 29 Nov 2022 11:12:17 +0000 (12:12 +0100)
commit4246fe977d850f8b78505c982f055d33d52ff339
treefcc5f21f6a3963f175cad58f571bedc1016f6747
parent4cfc1b8568bd8bf0d44fadc42ec86696d0561d33
gh-99845: Change _PyDict_KeysSize() return type to size_t (#99848)

* Change _PyDict_KeysSize() and shared_keys_usable_size() return type
  from signed (Py_ssize_t) to unsigned (size_t) type.
* new_values() argument type is now unsigned (size_t).
* init_inline_values() now uses size_t rather than int for the 'i'
  iterator variable.
* type.__sizeof__() implementation now uses unsigned (size_t) type.
Include/internal/pycore_dict.h
Objects/dictobject.c
Objects/typeobject.c