mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
GH-101291: Refactor the PyLongObject
struct into object header and PyLongValue struct. (GH-101292)
This commit is contained in:
parent
f5a3d91b6c
commit
c1b1f51cd1
13 changed files with 226 additions and 217 deletions
|
@ -901,7 +901,7 @@ class PyLongObjectPtr(PyObjectPtr):
|
|||
if ob_size == 0:
|
||||
return 0
|
||||
|
||||
ob_digit = self.field('ob_digit')
|
||||
ob_digit = self.field('long_value')['ob_digit']
|
||||
|
||||
if gdb.lookup_type('digit').sizeof == 2:
|
||||
SHIFT = 15
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue