mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +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
|
@ -2155,8 +2155,8 @@ unsafe_long_compare(PyObject *v, PyObject *w, MergeState *ms)
|
|||
vl = (PyLongObject*)v;
|
||||
wl = (PyLongObject*)w;
|
||||
|
||||
v0 = Py_SIZE(vl) == 0 ? 0 : (sdigit)vl->ob_digit[0];
|
||||
w0 = Py_SIZE(wl) == 0 ? 0 : (sdigit)wl->ob_digit[0];
|
||||
v0 = Py_SIZE(vl) == 0 ? 0 : (sdigit)vl->long_value.ob_digit[0];
|
||||
w0 = Py_SIZE(wl) == 0 ? 0 : (sdigit)wl->long_value.ob_digit[0];
|
||||
|
||||
if (Py_SIZE(vl) < 0)
|
||||
v0 = -v0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue