bpo-39573: Fix bad copy-paste in Py_SET_SIZE (GH-18496) · python/cpython@968dcd9 (original) (raw)

Original file line number Diff line number Diff line change
@@ -133,10 +133,10 @@ static inline void _Py_SET_TYPE(PyObject *ob, PyTypeObject *type) {
133 133 }
134 134 #define Py_SET_TYPE(ob, type) _Py_SET_TYPE(_PyObject_CAST(ob), type)
135 135
136 -static inline void _Py_SET_SIZE(PyVarObject *ob, Py_ssize_t refcnt) {
137 -ob->ob_size = refcnt;
136 +static inline void _Py_SET_SIZE(PyVarObject *ob, Py_ssize_t size) {
137 +ob->ob_size = size;
138 138 }
139 -#define Py_SET_SIZE(ob, refcnt) _Py_SET_SIZE(_PyVarObject_CAST(ob), refcnt)
139 +#define Py_SET_SIZE(ob, size) _Py_SET_SIZE(_PyVarObject_CAST(ob), size)
140 140
141 141
142 142 /*