summaryrefslogtreecommitdiff
path: root/Objects/longobject.c
diff options
context:
space:
mode:
authorJeffrey Yasskin <jyasskin@gmail.com>2008-01-04 08:01:23 +0000
committerJeffrey Yasskin <jyasskin@gmail.com>2008-01-04 08:01:23 +0000
commit737c73f96ff52cda4b433d25f887525442b7b430 (patch)
treebd81e5e6f6410395f6f2acc3d634c8f2d3be8c39 /Objects/longobject.c
parente0734e7dc0dcccc91ed657191b804b3a846ad3f6 (diff)
downloadcpython-git-737c73f96ff52cda4b433d25f887525442b7b430.tar.gz
Make math.{floor,ceil}({int,long}) return float again for backwards
compatibility after r59671 made them return integral types.
Diffstat (limited to 'Objects/longobject.c')
-rw-r--r--Objects/longobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c
index e2ffb35a97..eea5c3bad5 100644
--- a/Objects/longobject.c
+++ b/Objects/longobject.c
@@ -3402,9 +3402,9 @@ static PyMethodDef long_methods[] = {
"Returns self, the complex conjugate of any long."},
{"__trunc__", (PyCFunction)long_long, METH_NOARGS,
"Truncating an Integral returns itself."},
- {"__floor__", (PyCFunction)long_long, METH_NOARGS,
+ {"__floor__", (PyCFunction)long_float, METH_NOARGS,
"Flooring an Integral returns itself."},
- {"__ceil__", (PyCFunction)long_long, METH_NOARGS,
+ {"__ceil__", (PyCFunction)long_float, METH_NOARGS,
"Ceiling of an Integral returns itself."},
{"__round__", (PyCFunction)long_round, METH_VARARGS,
"Rounding an Integral returns itself.\n"