Skip to content

Commit 7e2224c

Browse files
committed
Formatting nitpicks
1 parent b074090 commit 7e2224c

File tree

1 file changed

+22
-23
lines changed

1 file changed

+22
-23
lines changed

main.c

+22-23
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,7 @@ static PyObject *
161161
MPZ_to_str(MPZ_Object *u, int base, int options)
162162
{
163163
if (base < 2 || base > 36) {
164-
PyErr_SetString(PyExc_ValueError,
165-
"mpz base must be >= 2 and <= 36");
164+
PyErr_SetString(PyExc_ValueError, "mpz base must be >= 2 and <= 36");
166165
return NULL;
167166
}
168167

@@ -2125,7 +2124,7 @@ gmp_parse_pyargs(const gmp_pyargs *fnargs, int argidx[], PyObject *const *args,
21252124
}
21262125

21272126
static PyObject *
2128-
vectorcall(PyObject *type, PyObject * const*args, size_t nargsf,
2127+
vectorcall(PyObject *type, PyObject *const *args, size_t nargsf,
21292128
PyObject *kwnames)
21302129
{
21312130
Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
@@ -2166,28 +2165,28 @@ str(PyObject *self)
21662165
return MPZ_to_str((MPZ_Object *)self, 10, 0);
21672166
}
21682167

2169-
#define Number_Check(op) (PyFloat_Check((op)) \
2170-
|| PyComplex_Check((op)))
2168+
#define Number_Check(op) (PyFloat_Check((op)) || PyComplex_Check((op)))
21712169

2172-
#define CHECK_OP(u, a) \
2173-
if (MPZ_Check(a)) { \
2174-
u = (MPZ_Object *)a; \
2175-
Py_INCREF(u); \
2176-
} \
2177-
else if (PyLong_Check(a)) { \
2178-
u = MPZ_from_int(a); \
2179-
if (!u) { \
2180-
goto end; \
2181-
} \
2182-
} \
2183-
else if (Number_Check(a)) { \
2184-
goto numbers; \
2185-
} \
2186-
else { \
2187-
goto fallback; \
2170+
#define CHECK_OP(u, a) \
2171+
if (MPZ_Check(a)) { \
2172+
u = (MPZ_Object *)a; \
2173+
Py_INCREF(u); \
2174+
} \
2175+
else if (PyLong_Check(a)) { \
2176+
u = MPZ_from_int(a); \
2177+
if (!u) { \
2178+
goto end; \
2179+
} \
2180+
} \
2181+
else if (Number_Check(a)) { \
2182+
goto numbers; \
2183+
} \
2184+
else { \
2185+
goto fallback; \
21882186
}
21892187

2190-
static PyObject * to_float(PyObject *self);
2188+
static PyObject *
2189+
to_float(PyObject *self);
21912190

21922191
static PyObject *
21932192
richcompare(PyObject *self, PyObject *other, int op)
@@ -3351,7 +3350,7 @@ static struct PyModuleDef gmp_module = {
33513350
};
33523351

33533352
PyDoc_STRVAR(gmp_info__doc__,
3354-
"gmp.gmplib_info\n\
3353+
"gmp.gmplib_info\n\
33553354
\n\
33563355
A named tuple that holds information about GNU GMP\n\
33573356
and it's internal representation of integers.\n\

0 commit comments

Comments
 (0)