diff options
author | Victor Stinner <vstinner@python.org> | 2022-11-25 23:30:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-25 23:30:37 (GMT) |
commit | 5556d3e02ca841b82b1eb42cc3974e0a3bbffaac (patch) | |
tree | 6130a8120ec5a36fd739d38047a4372f9ab30925 /Objects/longobject.c | |
parent | ae234fbc5ce045066448f2f0cda2f1c3c7ddebea (diff) | |
download | cpython-5556d3e02ca841b82b1eb42cc3974e0a3bbffaac.zip cpython-5556d3e02ca841b82b1eb42cc3974e0a3bbffaac.tar.gz cpython-5556d3e02ca841b82b1eb42cc3974e0a3bbffaac.tar.bz2 |
gh-98724: Fix warnings on Py_SETREF() usage (#99781)
Cast argument to the expected type.
Diffstat (limited to 'Objects/longobject.c')
-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 f4bd981..c84b4d3 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -4775,7 +4775,7 @@ long_pow(PyObject *v, PyObject *w, PyObject *x) * because we're primarily trying to cut overhead for small powers. */ assert(bi); /* else there is no significant bit */ - Py_SETREF(z, Py_NewRef(a)); + Py_SETREF(z, (PyLongObject*)Py_NewRef(a)); for (bit = 2; ; bit <<= 1) { if (bit > bi) { /* found the first bit */ assert((bi & bit) == 0); |