File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7331,8 +7331,8 @@ _PyDateTime_InitTypes(PyInterpreterState *interp)
73317331 // `&...` is not a constant expression according to a strict reading
73327332 // of C standards. Fill tp_base at run-time rather than statically.
73337333 // See https://bugs.python.org/issue40777
7334- PyDateTime_TimeZoneType .tp_base = & PyDateTime_TZInfoType ;
7335- PyDateTime_DateTimeType .tp_base = & PyDateTime_DateType ;
7334+ _Py_atomic_store_ptr_relaxed ( & PyDateTime_TimeZoneType .tp_base , & PyDateTime_TZInfoType ) ;
7335+ _Py_atomic_store_ptr_relaxed ( & PyDateTime_DateTimeType .tp_base , & PyDateTime_DateType ) ;
73367336
73377337 /* Bases classes must be initialized before subclasses,
73387338 * so capi_types must have the types in the appropriate order. */
You can’t perform that action at this time.
0 commit comments