From: Raymond Hettinger Date: Fri, 14 Sep 2018 08:35:59 +0000 (-0700) Subject: Fix compiler warning with a type cast (GH-9300) X-Git-Tag: v3.8.0a1~993 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=73820a60cc3c990abb351540ca27bf7689bce8ac;p=python Fix compiler warning with a type cast (GH-9300) --- 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; }