]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-99845: _PyObject_DictPointer(): fix dictoffset cast (#99922)
authorVictor Stinner <vstinner@python.org>
Thu, 1 Dec 2022 13:07:58 +0000 (14:07 +0100)
committerGitHub <noreply@github.com>
Thu, 1 Dec 2022 13:07:58 +0000 (14:07 +0100)
commit9707bf228e008485a3fbb63aa7ee28cf88014f91
treed7556e546bf23a5aeb5742a81b154747849bccac
parent88b754b605adbb87325cd797c65b4eae2cf25573
gh-99845: _PyObject_DictPointer(): fix dictoffset cast (#99922)

Cast size_t to Py_ssize_t, rather than casting it to long. On 64-bit
Windows, long is 32-bit whereas Py_ssize_t is 64-bit.
Objects/object.c