https://github.com/python/cpython/commit/65b339c5caf400c0b05605e6509bc708e754c8a1
commit: 65b339c5caf400c0b05605e6509bc708e754c8a1
branch: main
author: Chris Eibl <[email protected]>
committer: picnixz <[email protected]>
date: 2025-02-22T12:36:38+01:00
summary:
gh-111178: fix clang-cl compilation of `Modules/mmapmodule.c` post gh-129784
(#130446)
The `PyCFunction` cast on `mmap__sizeof__method` was removed but the method was
not updated accordingly.
files:
M Modules/mmapmodule.c
diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c
index fcce7a6bd8c973..67fd6db2f361d6 100644
--- a/Modules/mmapmodule.c
+++ b/Modules/mmapmodule.c
@@ -1094,7 +1094,7 @@ mmap__repr__method(PyObject *op)
#ifdef MS_WINDOWS
static PyObject *
-mmap__sizeof__method(PyObject *op, void *Py_UNUSED(ignored))
+mmap__sizeof__method(PyObject *op, PyObject *Py_UNUSED(dummy))
{
mmap_object *self = mmap_object_CAST(op);
size_t res = _PyObject_SIZE(Py_TYPE(self));
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]