File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -129,9 +129,10 @@ _PyLong_IsCompact(const PyLongObject* op) {
129129static inline Py_ssize_t
130130_PyLong_CompactValue (const PyLongObject * op )
131131{
132+ Py_ssize_t sign ;
132133 assert (PyType_HasFeature ((op )-> ob_base .ob_type , Py_TPFLAGS_LONG_SUBCLASS ));
133134 assert (PyUnstable_Long_IsCompact (op ));
134- Py_ssize_t sign = 1 - (op -> long_value .lv_tag & _PyLong_SIGN_MASK );
135+ sign = 1 - (op -> long_value .lv_tag & _PyLong_SIGN_MASK );
135136 return sign * (Py_ssize_t )op -> long_value .ob_digit [0 ];
136137}
137138
Original file line number Diff line number Diff line change @@ -343,8 +343,7 @@ PyAPI_DATA(PyTypeObject) PyBool_Type;
343343static inline Py_ssize_t Py_SIZE (PyObject * ob ) {
344344 assert (ob -> ob_type != & PyLong_Type );
345345 assert (ob -> ob_type != & PyBool_Type );
346- PyVarObject * var_ob = _PyVarObject_CAST (ob );
347- return var_ob -> ob_size ;
346+ return _PyVarObject_CAST (ob )-> ob_size ;
348347}
349348#if !defined(Py_LIMITED_API ) || Py_LIMITED_API + 0 < 0x030b0000
350349# define Py_SIZE (ob ) Py_SIZE(_PyObject_CAST(ob))
Original file line number Diff line number Diff line change 1+ Make the C API compatible with ``-Werror=declaration-after-statement ``
2+ compiler flag again. Patch by Victor Stinner.
You can’t perform that action at this time.
0 commit comments