From 9c1d7fd5f2173dc72ecdb1df7816c7e432437e02 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Tue, 4 Sep 2001 05:52:47 +0000 Subject: [PATCH] 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 eaf869f7bc..775213c2d3 100644 --- a/Objects/intobject.c +++ b/Objects/intobject.c @@ -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) { -- 2.40.0