@@ -161,8 +161,7 @@ static PyObject *
161
161
MPZ_to_str (MPZ_Object * u , int base , int options )
162
162
{
163
163
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" );
166
165
return NULL ;
167
166
}
168
167
@@ -2125,7 +2124,7 @@ gmp_parse_pyargs(const gmp_pyargs *fnargs, int argidx[], PyObject *const *args,
2125
2124
}
2126
2125
2127
2126
static PyObject *
2128
- vectorcall (PyObject * type , PyObject * const * args , size_t nargsf ,
2127
+ vectorcall (PyObject * type , PyObject * const * args , size_t nargsf ,
2129
2128
PyObject * kwnames )
2130
2129
{
2131
2130
Py_ssize_t nargs = PyVectorcall_NARGS (nargsf );
@@ -2166,28 +2165,28 @@ str(PyObject *self)
2166
2165
return MPZ_to_str ((MPZ_Object * )self , 10 , 0 );
2167
2166
}
2168
2167
2169
- #define Number_Check (op ) (PyFloat_Check((op)) \
2170
- || PyComplex_Check((op)))
2168
+ #define Number_Check (op ) (PyFloat_Check((op)) || PyComplex_Check((op)))
2171
2169
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; \
2188
2186
}
2189
2187
2190
- static PyObject * to_float (PyObject * self );
2188
+ static PyObject *
2189
+ to_float (PyObject * self );
2191
2190
2192
2191
static PyObject *
2193
2192
richcompare (PyObject * self , PyObject * other , int op )
@@ -3351,7 +3350,7 @@ static struct PyModuleDef gmp_module = {
3351
3350
};
3352
3351
3353
3352
PyDoc_STRVAR (gmp_info__doc__ ,
3354
- "gmp.gmplib_info\n\
3353
+ "gmp.gmplib_info\n\
3355
3354
\n\
3356
3355
A named tuple that holds information about GNU GMP\n\
3357
3356
and it's internal representation of integers.\n\
0 commit comments