Skip to content

Commit 6298821

Browse files
skirpichevvstinner
andauthored
Apply suggestions from code review
Co-authored-by: Victor Stinner <[email protected]>
1 parent 2337b1f commit 6298821

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pythoncapi_compat.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1729,9 +1729,9 @@ _PyLong_SetSignAndDigitCount(PyLongObject *op, int sign, Py_ssize_t size)
17291729
#if PY_VERSION_HEX >= 0x030C0000
17301730
op->long_value.lv_tag = (uintptr_t)(1 - sign) | ((uintptr_t)(size) << 3);
17311731
#elif PY_VERSION_HEX >= 0x030900A4
1732-
Py_SET_SIZE(op, sign*size);
1732+
Py_SET_SIZE(op, sign * size);
17331733
#else
1734-
Py_SIZE(op) = sign*size;
1734+
Py_SIZE(op) = sign * size;
17351735
#endif
17361736
}
17371737

@@ -1891,7 +1891,7 @@ PyLongWriter_Finish(PyLongWriter *writer)
18911891
_PyLong_SetSignAndDigitCount(self, sign, i);
18921892
}
18931893
if (i <= 1) {
1894-
long val = sign*(long)(_PyLong_GetDigits(self)[0]);
1894+
long val = sign * (long)(_PyLong_GetDigits(self)[0]);
18951895
Py_DECREF(obj);
18961896
return PyLong_FromLong(val);
18971897
}

0 commit comments

Comments
 (0)