From d147867c1c1502e0613acc343645ad5d31851e26 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Fri, 14 Sep 2018 01:07:08 -0700 Subject: [PATCH] Fix compiler warning with a type cast --- Objects/longobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/longobject.c b/Objects/longobject.c index 102093e1986547..afe30bc0532a78 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; }