Commit 73820a60 authored by Raymond Hettinger's avatar Raymond Hettinger Committed by GitHub

Fix compiler warning with a type cast (GH-9300)

parent 00bc08ec
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment