Skip to content

Commit 73820a6

Browse files
authored
Fix compiler warning with a type cast (GH-9300)
1 parent 00bc08e commit 73820a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/longobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5286,7 +5286,7 @@ int_as_integer_ratio_impl(PyObject *self)
52865286
if (PyLong_CheckExact(self)) {
52875287
return PyTuple_Pack(2, self, _PyLong_One);
52885288
}
5289-
numerator = _PyLong_Copy(self);
5289+
numerator = _PyLong_Copy((PyLongObject *) self);
52905290
if (numerator == NULL) {
52915291
return NULL;
52925292
}

0 commit comments

Comments
 (0)