summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-09-04 05:52:47 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-09-04 05:52:47 (GMT)
commit9c1d7fd5f2173dc72ecdb1df7816c7e432437e02 (patch)
tree56569220ee362a31697c1165392719ec037ec199 /Objects
parent20dab9f168745bdc7099f4daf33edc34fda2448b (diff)
downloadcpython-9c1d7fd5f2173dc72ecdb1df7816c7e432437e02.zip
cpython-9c1d7fd5f2173dc72ecdb1df7816c7e432437e02.tar.gz
cpython-9c1d7fd5f2173dc72ecdb1df7816c7e432437e02.tar.bz2
Move int_true_divide next to the other division routines.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/intobject.c12
1 files 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);