Skip to content

Commit 5a80e85

Browse files
authored
remove redundant argument to log_helper (GH-93440)
1 parent b013804 commit 5a80e85

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Modules/mathmodule.c

+5-5
Original file line numberDiff line numberDiff line change
@@ -2312,7 +2312,7 @@ math_modf_impl(PyObject *module, double x)
23122312
in that int is larger than PY_SSIZE_T_MAX. */
23132313

23142314
static PyObject*
2315-
loghelper(PyObject* arg, double (*func)(double), const char *funcname)
2315+
loghelper(PyObject* arg, double (*func)(double))
23162316
{
23172317
/* If it is int, do it ourselves. */
23182318
if (PyLong_Check(arg)) {
@@ -2372,11 +2372,11 @@ math_log_impl(PyObject *module, PyObject *x, int group_right_1,
23722372
PyObject *num, *den;
23732373
PyObject *ans;
23742374

2375-
num = loghelper(x, m_log, "log");
2375+
num = loghelper(x, m_log);
23762376
if (num == NULL || base == NULL)
23772377
return num;
23782378

2379-
den = loghelper(base, m_log, "log");
2379+
den = loghelper(base, m_log);
23802380
if (den == NULL) {
23812381
Py_DECREF(num);
23822382
return NULL;
@@ -2402,7 +2402,7 @@ static PyObject *
24022402
math_log2(PyObject *module, PyObject *x)
24032403
/*[clinic end generated code: output=5425899a4d5d6acb input=08321262bae4f39b]*/
24042404
{
2405-
return loghelper(x, m_log2, "log2");
2405+
return loghelper(x, m_log2);
24062406
}
24072407

24082408

@@ -2419,7 +2419,7 @@ static PyObject *
24192419
math_log10(PyObject *module, PyObject *x)
24202420
/*[clinic end generated code: output=be72a64617df9c6f input=b2469d02c6469e53]*/
24212421
{
2422-
return loghelper(x, m_log10, "log10");
2422+
return loghelper(x, m_log10);
24232423
}
24242424

24252425

0 commit comments

Comments
 (0)