File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Original file line number Diff line number Diff line change @@ -4581,7 +4581,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
4581
4581
DEOPT_IF (self_cls -> tp_version_tag != read_u32 (cache -> type_version ),
4582
4582
LOAD_METHOD );
4583
4583
/* Treat index as a signed 16 bit value */
4584
- int dictoffset = self_cls -> tp_dictoffset ;
4584
+ Py_ssize_t dictoffset = self_cls -> tp_dictoffset ;
4585
4585
assert (dictoffset > 0 );
4586
4586
PyDictObject * * dictptr = (PyDictObject * * )(((char * )self )+ dictoffset );
4587
4587
PyDictObject * dict = * dictptr ;
@@ -4625,7 +4625,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
4625
4625
_PyLoadMethodCache * cache = (_PyLoadMethodCache * )next_instr ;
4626
4626
uint32_t type_version = read_u32 (cache -> type_version );
4627
4627
DEOPT_IF (self_cls -> tp_version_tag != type_version , LOAD_METHOD );
4628
- int dictoffset = self_cls -> tp_dictoffset ;
4628
+ Py_ssize_t dictoffset = self_cls -> tp_dictoffset ;
4629
4629
assert (dictoffset > 0 );
4630
4630
PyObject * dict = * (PyObject * * )((char * )self + dictoffset );
4631
4631
/* This object has a __dict__, just not yet created */
You can’t perform that action at this time.
0 commit comments