From: Chris Eibl <138194463+chris-eibl@users.noreply.github.com> Date: Sat, 22 Feb 2025 11:36:38 +0000 (+0100) Subject: gh-111178: fix clang-cl compilation of `Modules/mmapmodule.c` post gh-129784 (#130446) X-Git-Tag: v3.14.0a6~312 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=65b339c5caf400c0b05605e6509bc708e754c8a1;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c index fcce7a6bd8c9..67fd6db2f361 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));