diff options
author | Raymond Hettinger <rhettinger@users.noreply.github.com> | 2018-09-14 08:35:59 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-14 08:35:59 (GMT) |
commit | 73820a60cc3c990abb351540ca27bf7689bce8ac (patch) | |
tree | 851b305aeacb3625042a2c6371f9da5bf8c1f07a /Objects | |
parent | 00bc08ec11d99cc68c7d5dc790ad3e609982a9c7 (diff) | |
download | cpython-73820a60cc3c990abb351540ca27bf7689bce8ac.zip cpython-73820a60cc3c990abb351540ca27bf7689bce8ac.tar.gz cpython-73820a60cc3c990abb351540ca27bf7689bce8ac.tar.bz2 |
Fix compiler warning with a type cast (GH-9300)
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/longobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c index 102093e..afe30bc 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; } |