update
This commit is contained in:
3
.CondaPkg/env/include/cpython/longintrepr.h
vendored
3
.CondaPkg/env/include/cpython/longintrepr.h
vendored
@@ -116,9 +116,10 @@ _PyLong_IsCompact(const PyLongObject* op) {
|
||||
static inline Py_ssize_t
|
||||
_PyLong_CompactValue(const PyLongObject *op)
|
||||
{
|
||||
Py_ssize_t sign;
|
||||
assert(PyType_HasFeature((op)->ob_base.ob_type, Py_TPFLAGS_LONG_SUBCLASS));
|
||||
assert(PyUnstable_Long_IsCompact(op));
|
||||
Py_ssize_t sign = 1 - (op->long_value.lv_tag & _PyLong_SIGN_MASK);
|
||||
sign = 1 - (op->long_value.lv_tag & _PyLong_SIGN_MASK);
|
||||
return sign * (Py_ssize_t)op->long_value.ob_digit[0];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user