From 65b339c5caf400c0b05605e6509bc708e754c8a1 Mon Sep 17 00:00:00 2001 From: Chris Eibl <138194463+chris-eibl@users.noreply.github.com> Date: Sat, 22 Feb 2025 12:36:38 +0100 Subject: 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. --- Modules/mmapmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c index fcce7a6..67fd6db 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)); -- cgit v0.12