summaryrefslogtreecommitdiffstats
path: root/Modules/clinic/_bz2module.c.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-05-03 18:25:41 (GMT)
committerGitHub <noreply@github.com>2022-05-03 18:25:41 (GMT)
commitb270b82f1137ff25ee263eafd31503d760f3403d (patch)
tree09a2ae5d93d47aa51f831f9fc906215095172667 /Modules/clinic/_bz2module.c.h
parentc278474df97de310535425c207136bf26c663e0b (diff)
downloadcpython-b270b82f1137ff25ee263eafd31503d760f3403d.zip
cpython-b270b82f1137ff25ee263eafd31503d760f3403d.tar.gz
cpython-b270b82f1137ff25ee263eafd31503d760f3403d.tar.bz2
gh-91320: Argument Clinic uses _PyCFunction_CAST() (#32210)
Replace "(PyCFunction)(void(*)(void))func" cast with _PyCFunction_CAST(func).
Diffstat (limited to 'Modules/clinic/_bz2module.c.h')
-rw-r--r--Modules/clinic/_bz2module.c.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/clinic/_bz2module.c.h b/Modules/clinic/_bz2module.c.h
index 71ad0b1..3ed72f8 100644
--- a/Modules/clinic/_bz2module.c.h
+++ b/Modules/clinic/_bz2module.c.h
@@ -85,7 +85,7 @@ PyDoc_STRVAR(_bz2_BZ2Decompressor_decompress__doc__,
"the unused_data attribute.");
#define _BZ2_BZ2DECOMPRESSOR_DECOMPRESS_METHODDEF \
- {"decompress", (PyCFunction)(void(*)(void))_bz2_BZ2Decompressor_decompress, METH_FASTCALL|METH_KEYWORDS, _bz2_BZ2Decompressor_decompress__doc__},
+ {"decompress", _PyCFunction_CAST(_bz2_BZ2Decompressor_decompress), METH_FASTCALL|METH_KEYWORDS, _bz2_BZ2Decompressor_decompress__doc__},
static PyObject *
_bz2_BZ2Decompressor_decompress_impl(BZ2Decompressor *self, Py_buffer *data,
@@ -139,4 +139,4 @@ exit:
return return_value;
}
-/*[clinic end generated code: output=ed10705d7a9fd598 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=a1175204a414fe2a input=a9049054013a1b77]*/