@@ -2312,7 +2312,7 @@ math_modf_impl(PyObject *module, double x)
2312
2312
in that int is larger than PY_SSIZE_T_MAX. */
2313
2313
2314
2314
static PyObject *
2315
- loghelper (PyObject * arg , double (* func )(double ), const char * funcname )
2315
+ loghelper (PyObject * arg , double (* func )(double ))
2316
2316
{
2317
2317
/* If it is int, do it ourselves. */
2318
2318
if (PyLong_Check (arg )) {
@@ -2372,11 +2372,11 @@ math_log_impl(PyObject *module, PyObject *x, int group_right_1,
2372
2372
PyObject * num , * den ;
2373
2373
PyObject * ans ;
2374
2374
2375
- num = loghelper (x , m_log , "log" );
2375
+ num = loghelper (x , m_log );
2376
2376
if (num == NULL || base == NULL )
2377
2377
return num ;
2378
2378
2379
- den = loghelper (base , m_log , "log" );
2379
+ den = loghelper (base , m_log );
2380
2380
if (den == NULL ) {
2381
2381
Py_DECREF (num );
2382
2382
return NULL ;
@@ -2402,7 +2402,7 @@ static PyObject *
2402
2402
math_log2 (PyObject * module , PyObject * x )
2403
2403
/*[clinic end generated code: output=5425899a4d5d6acb input=08321262bae4f39b]*/
2404
2404
{
2405
- return loghelper (x , m_log2 , "log2" );
2405
+ return loghelper (x , m_log2 );
2406
2406
}
2407
2407
2408
2408
@@ -2419,7 +2419,7 @@ static PyObject *
2419
2419
math_log10 (PyObject * module , PyObject * x )
2420
2420
/*[clinic end generated code: output=be72a64617df9c6f input=b2469d02c6469e53]*/
2421
2421
{
2422
- return loghelper (x , m_log10 , "log10" );
2422
+ return loghelper (x , m_log10 );
2423
2423
}
2424
2424
2425
2425
0 commit comments