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) {
129
129
static inline Py_ssize_t
130
130
_PyLong_CompactValue (const PyLongObject * op )
131
131
{
132
+ Py_ssize_t sign ;
132
133
assert (PyType_HasFeature ((op )-> ob_base .ob_type , Py_TPFLAGS_LONG_SUBCLASS ));
133
134
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 );
135
136
return sign * (Py_ssize_t )op -> long_value .ob_digit [0 ];
136
137
}
137
138
Original file line number Diff line number Diff line change @@ -343,8 +343,7 @@ PyAPI_DATA(PyTypeObject) PyBool_Type;
343
343
static inline Py_ssize_t Py_SIZE (PyObject * ob ) {
344
344
assert (ob -> ob_type != & PyLong_Type );
345
345
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 ;
348
347
}
349
348
#if !defined(Py_LIMITED_API ) || Py_LIMITED_API + 0 < 0x030b0000
350
349
# 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