Skip to content

Commit 8ca405b

Browse files
committed
Use correct type for loading type version
1 parent 56e9a8a commit 8ca405b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Python/bytecodes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2350,7 +2350,7 @@ dummy_func(
23502350
DEOPT_IF(tstate->interp->eval_frame);
23512351
PyTypeObject *cls = Py_TYPE(owner_o);
23522352
assert(type_version != 0);
2353-
DEOPT_IF(FT_ATOMIC_LOAD_UINT32_RELAXED(cls->tp_version_tag) != type_version);
2353+
DEOPT_IF(FT_ATOMIC_LOAD_UINT_RELAXED(cls->tp_version_tag) != type_version);
23542354
assert(Py_IS_TYPE(getattribute, &PyFunction_Type));
23552355
PyFunctionObject *f = (PyFunctionObject *)getattribute;
23562356
assert(func_version != 0);

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)