From 1c8e4f0f3d4ab1fe1d022a880cec17a39313f0c5 Mon Sep 17 00:00:00 2001 From: Triczzz Date: Sun, 13 Mar 2022 11:28:28 +0800 Subject: [PATCH] Unify the definition of PyVarObject by using PyObject_HEAD --- Include/object.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Include/object.h b/Include/object.h index 317515d2c81510..9ecdfd91020abf 100644 --- a/Include/object.h +++ b/Include/object.h @@ -108,7 +108,7 @@ struct _object { #define _PyObject_CAST_CONST(op) ((const PyObject*)(op)) typedef struct { - PyObject ob_base; + PyObject_HEAD Py_ssize_t ob_size; /* Number of items in variable part */ } PyVarObject;