From 73820a60cc3c990abb351540ca27bf7689bce8ac Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Fri, 14 Sep 2018 01:35:59 -0700 Subject: [PATCH] Fix compiler warning with a type cast (GH-9300) --- Objects/longobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/longobject.c b/Objects/longobject.c index 102093e198..afe30bc053 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -5286,7 +5286,7 @@ int_as_integer_ratio_impl(PyObject *self) if (PyLong_CheckExact(self)) { return PyTuple_Pack(2, self, _PyLong_One); } - numerator = _PyLong_Copy(self); + numerator = _PyLong_Copy((PyLongObject *) self); if (numerator == NULL) { return NULL; } -- 2.40.0