Skip to content

Commit 8ef277e

Browse files
[3.13] gh-123484: Fix the debug offsets for PyLongObject (GH-123485) (#123499)
1 parent eec25e5 commit 8ef277e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Include/internal/pycore_runtime_init.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ extern PyTypeObject _PyExc_MemoryError;
117117
}, \
118118
.long_object = { \
119119
.size = sizeof(PyLongObject), \
120-
.lv_tag = offsetof(_PyLongValue, lv_tag), \
121-
.ob_digit = offsetof(_PyLongValue, ob_digit), \
120+
.lv_tag = offsetof(PyLongObject, long_value.lv_tag), \
121+
.ob_digit = offsetof(PyLongObject, long_value.ob_digit), \
122122
}, \
123123
.bytes_object = { \
124124
.size = sizeof(PyBytesObject), \
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fix ``_Py_DebugOffsets`` for long objects to be relative to the start of the
2+
object rather than the start of a subobject.

0 commit comments

Comments
 (0)