[issue36027] Support negative exponents in pow() where a modulus is specified.
Serhiy Storchaka
report at bugs.python.org
Sun Jun 2 07:01:47 EDT 2019
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
PR 13266 introduced a compiler warning.
Objects/longobject.c: In function ‘long_invmod’:
Objects/longobject.c:4246:25: warning: passing argument 2 of ‘long_compare’ from incompatible pointer type [-Wincompatible-pointer-types]
if (long_compare(a, _PyLong_One)) {
^~~~~~~~~~~
Objects/longobject.c:3057:1: note: expected ‘PyLongObject * {aka struct _longobject *}’ but argument is of type ‘PyObject * {aka struct _object *}’
long_compare(PyLongObject *a, PyLongObject *b)
^~~~~~~~~~~~
----------
nosy: +serhiy.storchaka
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36027>
_______________________________________
More information about the Python-bugs-list
mailing list