summaryrefslogtreecommitdiff
path: root/Modules/mathmodule.c
diff options
context:
space:
mode:
authorPieter Eendebak <pieter.eendebak@gmail.com>2022-06-03 09:40:05 +0200
committerGitHub <noreply@github.com>2022-06-03 08:40:05 +0100
commit5a80e8580e2eb9eac4035d81439ed51523fcc4d2 (patch)
tree45779939f5bb06d037ce1b922926ea6100f03efe /Modules/mathmodule.c
parentb013804134b07894205b06744628f6b25b879d85 (diff)
downloadcpython-git-5a80e8580e2eb9eac4035d81439ed51523fcc4d2.tar.gz
remove redundant argument to log_helper (GH-93440)
Diffstat (limited to 'Modules/mathmodule.c')
-rw-r--r--Modules/mathmodule.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c
index aa93e756c6..2431ac3283 100644
--- a/Modules/mathmodule.c
+++ b/Modules/mathmodule.c
@@ -2312,7 +2312,7 @@ math_modf_impl(PyObject *module, double x)
in that int is larger than PY_SSIZE_T_MAX. */
static PyObject*
-loghelper(PyObject* arg, double (*func)(double), const char *funcname)
+loghelper(PyObject* arg, double (*func)(double))
{
/* If it is int, do it ourselves. */
if (PyLong_Check(arg)) {
@@ -2372,11 +2372,11 @@ math_log_impl(PyObject *module, PyObject *x, int group_right_1,
PyObject *num, *den;
PyObject *ans;
- num = loghelper(x, m_log, "log");
+ num = loghelper(x, m_log);
if (num == NULL || base == NULL)
return num;
- den = loghelper(base, m_log, "log");
+ den = loghelper(base, m_log);
if (den == NULL) {
Py_DECREF(num);
return NULL;
@@ -2402,7 +2402,7 @@ static PyObject *
math_log2(PyObject *module, PyObject *x)
/*[clinic end generated code: output=5425899a4d5d6acb input=08321262bae4f39b]*/
{
- return loghelper(x, m_log2, "log2");
+ return loghelper(x, m_log2);
}
@@ -2419,7 +2419,7 @@ static PyObject *
math_log10(PyObject *module, PyObject *x)
/*[clinic end generated code: output=be72a64617df9c6f input=b2469d02c6469e53]*/
{
- return loghelper(x, m_log10, "log10");
+ return loghelper(x, m_log10);
}