Skip to content

Commit

Permalink
pythongh-123484: Fix the debug offsets for PyLongObject (pythonGH-123485
Browse files Browse the repository at this point in the history
)

(cherry picked from commit 7fca268)

Co-authored-by: Matt Wozniski <[email protected]>
  • Loading branch information
godlygeek authored and miss-islington committed Aug 30, 2024
1 parent eec25e5 commit 7f5a2f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Include/internal/pycore_runtime_init.h
Original file line number Diff line number Diff line change
Expand Up @@ -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), \
Expand Down
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit 7f5a2f3

Please sign in to comment.