summaryrefslogtreecommitdiffstats
path: root/Modules/clinic/_randommodule.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/_randommodule.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/_randommodule.c.h')
-rw-r--r--Modules/clinic/_randommodule.c.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/clinic/_randommodule.c.h b/Modules/clinic/_randommodule.c.h
index b3cd435..503c1f9 100644
--- a/Modules/clinic/_randommodule.c.h
+++ b/Modules/clinic/_randommodule.c.h
@@ -30,7 +30,7 @@ PyDoc_STRVAR(_random_Random_seed__doc__,
"of the current time and the process identifier.");
#define _RANDOM_RANDOM_SEED_METHODDEF \
- {"seed", (PyCFunction)(void(*)(void))_random_Random_seed, METH_FASTCALL, _random_Random_seed__doc__},
+ {"seed", _PyCFunction_CAST(_random_Random_seed), METH_FASTCALL, _random_Random_seed__doc__},
static PyObject *
_random_Random_seed_impl(RandomObject *self, PyObject *n);
@@ -109,4 +109,4 @@ _random_Random_getrandbits(RandomObject *self, PyObject *arg)
exit:
return return_value;
}
-/*[clinic end generated code: output=cc8a23b2757dc6ba input=a9049054013a1b77]*/
+/*[clinic end generated code: output=d144826cde89e605 input=a9049054013a1b77]*/