]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-111178: fix clang-cl compilation of `Modules/mmapmodule.c` post gh-129784 (#130446)
authorChris Eibl <138194463+chris-eibl@users.noreply.github.com>
Sat, 22 Feb 2025 11:36:38 +0000 (12:36 +0100)
committerGitHub <noreply@github.com>
Sat, 22 Feb 2025 11:36:38 +0000 (12:36 +0100)
The `PyCFunction` cast on `mmap__sizeof__method` was removed but the method was not updated accordingly.

Modules/mmapmodule.c

index fcce7a6bd8c9738d512389ca3602cd78de4bb4ea..67fd6db2f361d6e51eb085528ae820276543bbce 100644 (file)
@@ -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));