From 9c1d7fd5f2173dc72ecdb1df7816c7e432437e02 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Tue, 4 Sep 2001 05:52:47 +0000 Subject: Move int_true_divide next to the other division routines. --- Objects/intobject.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Objects/intobject.c b/Objects/intobject.c index eaf869f..775213c 100644 --- a/Objects/intobject.c +++ b/Objects/intobject.c @@ -533,6 +533,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) { long xi, yi; @@ -768,12 +774,6 @@ int_or(PyIntObject *v, PyIntObject *w) } 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) { Py_INCREF(v); -- cgit v0.12