mirror of https://github.com/python/cpython
gh-123484: Fix the debug offsets for PyLongObject (#123485)
This commit is contained in:
parent
103a0470e3
commit
7fca268bee
|
@ -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), \
|
||||
|
|
|
@ -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.
|
Loading…
Reference in New Issue