Skip to content

Commit e8fac3f

Browse files
fix fpcasts
1 parent 301060b commit e8fac3f

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

Modules/_testinternalcapi/test_cases.c.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Python/bytecodes.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4835,7 +4835,7 @@ dummy_func(
48354835
PyObject *self = PyStackRef_AsPyObjectBorrow(arguments[0]);
48364836
assert(self != NULL);
48374837
STAT_INC(CALL, hit);
4838-
PyCFunctionFastWithKeywords cfunc = (PyCFunctionFastWithKeywords)method->d_method->ml_meth;
4838+
PyCFunctionFastWithKeywords cfunc = _PyCFunctionFastWithKeywords_CAST(method->d_method->ml_meth);
48394839
PyObject *res_o = _PyCallMethodDescriptorFastWithKeywords_StackRefSteal(
48404840
callable,
48414841
cfunc,
@@ -4856,7 +4856,7 @@ dummy_func(
48564856
STAT_INC(CALL, hit);
48574857
PyObject *res_o = _PyCallMethodDescriptorFastWithKeywords_StackRefSteal(
48584858
callable,
4859-
(PyCFunctionFastWithKeywords)cfunc,
4859+
_PyCFunctionFastWithKeywords_CAST(cfunc),
48604860
self,
48614861
args,
48624862
oparg
@@ -4968,7 +4968,7 @@ dummy_func(
49684968
PyObject *self = PyStackRef_AsPyObjectBorrow(arguments[0]);
49694969
assert(self != NULL);
49704970
STAT_INC(CALL, hit);
4971-
PyCFunctionFast cfunc = (PyCFunctionFast)method->d_method->ml_meth;
4971+
PyCFunctionFast cfunc = _PyCFunctionFast_CAST(method->d_method->ml_meth);
49724972
PyObject *res_o = _PyCallMethodDescriptorFast_StackRefSteal(
49734973
callable,
49744974
cfunc,
@@ -4989,7 +4989,7 @@ dummy_func(
49894989
STAT_INC(CALL, hit);
49904990
PyObject *res_o = _PyCallMethodDescriptorFast_StackRefSteal(
49914991
callable,
4992-
(PyCFunctionFast)cfunc,
4992+
_PyCFunctionFast_CAST(cfunc),
49934993
self,
49944994
args,
49954995
oparg

Python/executor_cases.c.h

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Python/generated_cases.c.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)