Move long_true_divide next to the other division routines (for clarity!).
This commit is contained in:
parent
9fffa3eea3
commit
20dab9f168
|
@ -1581,6 +1581,12 @@ long_classic_div(PyObject *v, PyObject *w)
|
||||||
return (PyObject *)div;
|
return (PyObject *)div;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static PyObject *
|
||||||
|
long_true_divide(PyObject *v, PyObject *w)
|
||||||
|
{
|
||||||
|
return PyFloat_Type.tp_as_number->nb_divide(v, w);
|
||||||
|
}
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
long_mod(PyObject *v, PyObject *w)
|
long_mod(PyObject *v, PyObject *w)
|
||||||
{
|
{
|
||||||
|
@ -2061,12 +2067,6 @@ long_or(PyObject *v, PyObject *w)
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
|
|
||||||
static PyObject *
|
|
||||||
long_true_divide(PyObject *v, PyObject *w)
|
|
||||||
{
|
|
||||||
return PyFloat_Type.tp_as_number->nb_divide(v, w);
|
|
||||||
}
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
long_coerce(PyObject **pv, PyObject **pw)
|
long_coerce(PyObject **pv, PyObject **pw)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue