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.
This commit is contained in:
Chris Eibl 2025-02-22 12:36:38 +01:00 committed by GitHub
parent 474c388740
commit 65b339c5ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View 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));