summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2018-09-14 01:35:59 -0700
committerGitHub <noreply@github.com>2018-09-14 01:35:59 -0700
commit73820a60cc3c990abb351540ca27bf7689bce8ac (patch)
tree851b305aeacb3625042a2c6371f9da5bf8c1f07a
parent00bc08ec11d99cc68c7d5dc790ad3e609982a9c7 (diff)
downloadcpython-git-73820a60cc3c990abb351540ca27bf7689bce8ac.tar.gz
Fix compiler warning with a type cast (GH-9300)
-rw-r--r--Objects/longobject.c2
1 files changed, 1 insertions, 1 deletions
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;
}