Make math.{floor,ceil}({int,long}) return float again for backwards
compatibility after r59671 made them return integral types.
diff --git a/Objects/intobject.c b/Objects/intobject.c
index a93b9b2..96d7f76 100644
--- a/Objects/intobject.c
+++ b/Objects/intobject.c
@@ -1086,9 +1086,9 @@
 	 "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"
diff --git a/Objects/longobject.c b/Objects/longobject.c
index e2ffb35..eea5c3b 100644
--- a/Objects/longobject.c
+++ b/Objects/longobject.c
@@ -3402,9 +3402,9 @@
 	 "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"