summaryrefslogtreecommitdiff
path: root/Objects/intobject.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
commitaec6285aeb7d427a3a5fe10e5d8cb5ec405fe74a (patch)
tree14717e814dfe45f34783e0fca4bc518ee124d20d /Objects/intobject.c
parent7bde1d118efc98d0fdb3f99be0366e72f2a526fe (diff)
downloadcpython-aec6285aeb7d427a3a5fe10e5d8cb5ec405fe74a.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/intobject.c')
-rw-r--r--Objects/intobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/intobject.c b/Objects/intobject.c
index a93b9b201a..96d7f76ab1 100644
--- a/Objects/intobject.c
+++ b/Objects/intobject.c
@@ -1086,9 +1086,9 @@ static PyMethodDef int_methods[] = {
"Returns self, the complex conjugate of any int."},
{"__trunc__", (PyCFunction)int_int, METH_NOARGS,
"Truncating an Integral returns itself."},
- {"__floor__", (PyCFunction)int_int, METH_NOARGS,
+ {"__floor__", (PyCFunction)int_float, METH_NOARGS,
"Flooring an Integral returns itself."},
- {"__ceil__", (PyCFunction)int_int, METH_NOARGS,
+ {"__ceil__", (PyCFunction)int_float, METH_NOARGS,
"Ceiling of an Integral returns itself."},
{"__round__", (PyCFunction)int_round, METH_VARARGS,
"Rounding an Integral returns itself.\n"