Fix compiler warning with a type cast (GH-9300)
This commit is contained in:
parent
00bc08ec11
commit
73820a60cc
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue