summaryrefslogtreecommitdiffstats
path: root/Objects/longobject.c
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-09-04 05:31:47 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-09-04 05:31:47 (GMT)
commit20dab9f168745bdc7099f4daf33edc34fda2448b (patch)
tree7b1a34f7358048274c8f903c1fbba3b94730d5bb /Objects/longobject.c
parent9fffa3eea3a7e99b0179988e7a016a45bf63ab96 (diff)
downloadcpython-20dab9f168745bdc7099f4daf33edc34fda2448b.zip
cpython-20dab9f168745bdc7099f4daf33edc34fda2448b.tar.gz
cpython-20dab9f168745bdc7099f4daf33edc34fda2448b.tar.bz2
Move long_true_divide next to the other division routines (for clarity!).
Diffstat (limited to 'Objects/longobject.c')
-rw-r--r--Objects/longobject.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c
index e97ebd5..7aa6005 100644
--- a/Objects/longobject.c
+++ b/Objects/longobject.c
@@ -1582,6 +1582,12 @@ long_classic_div(PyObject *v, PyObject *w)
}
static PyObject *
+long_true_divide(PyObject *v, PyObject *w)
+{
+ return PyFloat_Type.tp_as_number->nb_divide(v, w);
+}
+
+static PyObject *
long_mod(PyObject *v, PyObject *w)
{
PyLongObject *a, *b, *div, *mod;
@@ -2061,12 +2067,6 @@ long_or(PyObject *v, PyObject *w)
return c;
}
-static PyObject *
-long_true_divide(PyObject *v, PyObject *w)
-{
- return PyFloat_Type.tp_as_number->nb_divide(v, w);
-}
-
static int
long_coerce(PyObject **pv, PyObject **pw)
{