Commit a3692d28 authored by Tim Peters's avatar Tim Peters

Move int_true_divide next to the other division routines.

parent 9f3d100d
...@@ -532,6 +532,12 @@ int_classic_div(PyIntObject *x, PyIntObject *y) ...@@ -532,6 +532,12 @@ int_classic_div(PyIntObject *x, PyIntObject *y)
} }
} }
static PyObject *
int_true_divide(PyObject *v, PyObject *w)
{
return PyFloat_Type.tp_as_number->nb_true_divide(v, w);
}
static PyObject * static PyObject *
int_mod(PyIntObject *x, PyIntObject *y) int_mod(PyIntObject *x, PyIntObject *y)
{ {
...@@ -767,12 +773,6 @@ int_or(PyIntObject *v, PyIntObject *w) ...@@ -767,12 +773,6 @@ int_or(PyIntObject *v, PyIntObject *w)
return PyInt_FromLong(a | b); return PyInt_FromLong(a | b);
} }
static PyObject *
int_true_divide(PyObject *v, PyObject *w)
{
return PyFloat_Type.tp_as_number->nb_true_divide(v, w);
}
static PyObject * static PyObject *
int_int(PyIntObject *v) int_int(PyIntObject *v)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment