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 5329cdb commit 03b1883Copy full SHA for 03b1883
Include/longintrepr.h
@@ -36,11 +36,14 @@ typedef BASE_TWODIGITS_TYPE stwodigits; /* signed variant of twodigits */
36
digit) is never zero. Also, in all cases, for all valid i,
37
0 <= ob_digit[i] <= MASK.
38
The allocation function takes care of allocating extra memory
39
- so that ob_digit[0] ... ob_digit[abs(ob_size)-1] are actually available. */
+ so that ob_digit[0] ... ob_digit[abs(ob_size)-1] are actually available.
40
+
41
+ CAUTION: Generic code manipulating subtypes of PyVarObject has to
42
+ aware that longs abuse ob_size's sign bit.
43
+*/
44
45
struct _longobject {
- PyObject_HEAD
- int ob_size;
46
+ PyObject_VAR_HEAD
47
digit ob_digit[1];
48
};
49
0 commit comments