Skip to content

Commit 3513e8f

Browse files
committed
remove cast
1 parent c52d9d2 commit 3513e8f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Python/bytecodes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ dummy_func(
915915
assert(PySlice_Check(sub));
916916
assert(PyList_CheckExact(list));
917917

918-
PyObject *res_o = _PyList_Subscript((PyListObject*)list, sub);
918+
PyObject *res_o = _PyList_Subscript(list, sub);
919919
DEOPT_IF(res_o == NULL);
920920
STAT_INC(BINARY_OP, hit);
921921
res = PyStackRef_FromPyObjectSteal(res_o);

Python/executor_cases.c.h

Lines changed: 1 addition & 1 deletion
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: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)