Move int_true_divide next to the other division routines.

This commit is contained in:
Tim Peters 2001-09-04 05:52:47 +00:00
parent 20dab9f168
commit 9c1d7fd5f2
1 changed files with 6 additions and 6 deletions

View File

@ -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 *
int_mod(PyIntObject *x, PyIntObject *y)
{
@ -767,12 +773,6 @@ int_or(PyIntObject *v, PyIntObject *w)
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 *
int_int(PyIntObject *v)
{