Skip to content

Commit edefb86

Browse files
authored
gh-127518: Fix pystats build after #127169 (#127526)
gh-127518: Fix pystats build after #127619
1 parent c7dec02 commit edefb86

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Python/specialize.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -1816,8 +1816,9 @@ _Py_Specialize_BinarySubscr(
18161816

18171817
#ifdef Py_STATS
18181818
static int
1819-
store_subscr_fail_kind(PyObject *container_type)
1819+
store_subscr_fail_kind(PyObject *container, PyObject *sub)
18201820
{
1821+
PyTypeObject *container_type = Py_TYPE(container);
18211822
PyMappingMethods *as_mapping = container_type->tp_as_mapping;
18221823
if (as_mapping && (as_mapping->mp_ass_subscript
18231824
== PyDict_Type.tp_as_mapping->mp_ass_subscript)) {
@@ -1915,7 +1916,7 @@ _Py_Specialize_StoreSubscr(_PyStackRef container_st, _PyStackRef sub_st, _Py_COD
19151916
specialize(instr, STORE_SUBSCR_DICT);
19161917
return;
19171918
}
1918-
SPECIALIZATION_FAIL(STORE_SUBSCR, store_subscr_fail_kind(container_type));
1919+
SPECIALIZATION_FAIL(STORE_SUBSCR, store_subscr_fail_kind(container, sub));
19191920
unspecialize(instr);
19201921
}
19211922

0 commit comments

Comments
 (0)