summaryrefslogtreecommitdiff
path: root/Python/clinic/marshal.c.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-05-03 20:25:41 +0200
committerGitHub <noreply@github.com>2022-05-03 20:25:41 +0200
commitb270b82f1137ff25ee263eafd31503d760f3403d (patch)
tree09a2ae5d93d47aa51f831f9fc906215095172667 /Python/clinic/marshal.c.h
parentc278474df97de310535425c207136bf26c663e0b (diff)
downloadcpython-git-b270b82f1137ff25ee263eafd31503d760f3403d.tar.gz
gh-91320: Argument Clinic uses _PyCFunction_CAST() (#32210)
Replace "(PyCFunction)(void(*)(void))func" cast with _PyCFunction_CAST(func).
Diffstat (limited to 'Python/clinic/marshal.c.h')
-rw-r--r--Python/clinic/marshal.c.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Python/clinic/marshal.c.h b/Python/clinic/marshal.c.h
index f80d5ef31f..36f2afd524 100644
--- a/Python/clinic/marshal.c.h
+++ b/Python/clinic/marshal.c.h
@@ -20,7 +20,7 @@ PyDoc_STRVAR(marshal_dump__doc__,
"to the file. The object will not be properly read back by load().");
#define MARSHAL_DUMP_METHODDEF \
- {"dump", (PyCFunction)(void(*)(void))marshal_dump, METH_FASTCALL, marshal_dump__doc__},
+ {"dump", _PyCFunction_CAST(marshal_dump), METH_FASTCALL, marshal_dump__doc__},
static PyObject *
marshal_dump_impl(PyObject *module, PyObject *value, PyObject *file,
@@ -87,7 +87,7 @@ PyDoc_STRVAR(marshal_dumps__doc__,
"unsupported type.");
#define MARSHAL_DUMPS_METHODDEF \
- {"dumps", (PyCFunction)(void(*)(void))marshal_dumps, METH_FASTCALL, marshal_dumps__doc__},
+ {"dumps", _PyCFunction_CAST(marshal_dumps), METH_FASTCALL, marshal_dumps__doc__},
static PyObject *
marshal_dumps_impl(PyObject *module, PyObject *value, int version);
@@ -155,4 +155,4 @@ exit:
return return_value;
}
-/*[clinic end generated code: output=68b78f38bfe0c06d input=a9049054013a1b77]*/
+/*[clinic end generated code: output=b9e838edee43fe87 input=a9049054013a1b77]*/