Skip to content

Commit

Permalink
Port to 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn committed Jan 13, 2025
1 parent 1919228 commit 377855c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Objects/typeobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -996,9 +996,15 @@ type_modified_unlocked(PyTypeObject *type)
We don't assign new version tags eagerly, but only as
needed.
*/
#ifdef Py_GIL_DISABLED
if (_Py_atomic_load_uint_relaxed(type->tp_version_tag) == 0) {

Check warning on line 1000 in Objects/typeobject.c

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04-aarch64)

passing argument 1 of ‘_Py_atomic_load_uint_relaxed’ makes pointer from integer without a cast [-Wint-conversion]

Check warning on line 1000 in Objects/typeobject.c

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04)

passing argument 1 of ‘_Py_atomic_load_uint_relaxed’ makes pointer from integer without a cast [-Wint-conversion]

Check warning on line 1000 in Objects/typeobject.c

View workflow job for this annotation

GitHub Actions / Windows (free-threading) / build and test (x64)

'function': 'const unsigned int *' differs in levels of indirection from 'unsigned int' [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]

Check warning on line 1000 in Objects/typeobject.c

View workflow job for this annotation

GitHub Actions / Windows (free-threading) / build and test (x64)

'_Py_atomic_load_uint_relaxed': different types for formal and actual parameter 1 [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]

Check warning on line 1000 in Objects/typeobject.c

View workflow job for this annotation

GitHub Actions / Windows (free-threading) / build and test (arm64)

'function': 'const unsigned int *' differs in levels of indirection from 'unsigned int' [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]

Check warning on line 1000 in Objects/typeobject.c

View workflow job for this annotation

GitHub Actions / Windows (free-threading) / build and test (arm64)

'_Py_atomic_load_uint_relaxed': different types for formal and actual parameter 1 [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
return;
}
#else
if (type->tp_version_tag == 0) {
return;
}
#endif
// Cannot modify static builtin types.
assert((type->tp_flags & _Py_TPFLAGS_STATIC_BUILTIN) == 0);

Expand Down

0 comments on commit 377855c

Please sign in to comment.