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

This commit is contained in:
Raymond Hettinger 2018-09-14 01:35:59 -07:00 committed by GitHub
parent 00bc08ec11
commit 73820a60cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}