[3.13] gh-123484: Fix the debug offsets for PyLongObject (GH-123485) (#123499)

This commit is contained in:
Miss Islington (bot) 2024-08-30 14:05:50 +02:00 committed by GitHub
parent eec25e5d47
commit 8ef277e5e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -117,8 +117,8 @@ extern PyTypeObject _PyExc_MemoryError;
}, \
.long_object = { \
.size = sizeof(PyLongObject), \
.lv_tag = offsetof(_PyLongValue, lv_tag), \
.ob_digit = offsetof(_PyLongValue, ob_digit), \
.lv_tag = offsetof(PyLongObject, long_value.lv_tag), \
.ob_digit = offsetof(PyLongObject, long_value.ob_digit), \
}, \
.bytes_object = { \
.size = sizeof(PyBytesObject), \

View File

@ -0,0 +1,2 @@
Fix ``_Py_DebugOffsets`` for long objects to be relative to the start of the
object rather than the start of a subobject.