Skip to content

Commit 1e375c6

Browse files
authored
bpo-36027: Really fix "incompatible pointer type" compiler warning (GH-13761)
Apologies for the earlier hasty attempt.
1 parent be718c3 commit 1e375c6

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
@@ -4243,7 +4243,7 @@ long_invmod(PyLongObject *a, PyLongObject *n)
42434243

42444244
Py_DECREF(c);
42454245
Py_DECREF(n);
4246-
if (long_compare(a, (PyObject *)_PyLong_One)) {
4246+
if (long_compare(a, (PyLongObject *)_PyLong_One)) {
42474247
/* a != 1; we don't have an inverse. */
42484248
Py_DECREF(a);
42494249
Py_DECREF(b);

0 commit comments

Comments
 (0)