We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61adba0 commit 877067cCopy full SHA for 877067c
Include/cpython/longintrepr.h
@@ -71,6 +71,9 @@ typedef long stwodigits; /* signed variant of twodigits */
71
0 <= ob_digit[i] <= MASK.
72
The allocation function takes care of allocating extra memory
73
so that ob_digit[0] ... ob_digit[abs(ob_size)-1] are actually available.
74
+ We always allocate memory for at least one digit, so accessing ob_digit[0]
75
+ is always safe. However, in the case ob_size == 0, the contents of
76
+ ob_digit[0] may be undefined.
77
78
CAUTION: Generic code manipulating subtypes of PyVarObject has to
79
aware that ints abuse ob_size's sign bit.
0 commit comments