File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
Original file line number Diff line number Diff line change @@ -12916,14 +12916,15 @@ _pystatvfs_fromstructstatfs(PyObject *module, struct statfs st) {
12916
12916
12917
12917
_Static_assert (sizeof (st .f_blocks ) == sizeof (long long ), "assuming large file" );
12918
12918
12919
- #define SET_ITEM (v , index , item ) \
12920
- do { \
12921
- if (item == NULL) { \
12922
- Py_DECREF(v); \
12923
- return NULL; \
12924
- } \
12925
- PyStructSequence_SET_ITEM(v, index, item); \
12926
- } while (0) \
12919
+ #define SET_ITEM (SEQ , INDEX , EXPR ) \
12920
+ do { \
12921
+ PyObject *obj = (EXPR); \
12922
+ if (obj == NULL) { \
12923
+ Py_DECREF((SEQ)); \
12924
+ return NULL; \
12925
+ } \
12926
+ PyStructSequence_SET_ITEM((SEQ), (INDEX), obj); \
12927
+ } while (0)
12927
12928
12928
12929
SET_ITEM (v , 0 , PyLong_FromLong ((long ) st .f_iosize ));
12929
12930
SET_ITEM (v , 1 , PyLong_FromLong ((long ) st .f_bsize ));
You can’t perform that action at this time.
0 commit comments