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)) {
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;
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);
}
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);
}