[issue35696] remove unnecessary operation in long_compare()

STINNER Victor report at bugs.python.org
Fri Sep 20 13:16:06 EDT 2019


STINNER Victor <vstinner at python.org> added the comment:

I reopen the issue. The win32 job of Azure Pipelines now logs a compiler warning:

Objects\longobject.c(412,5): warning C4244:  'function': conversion from 'unsigned long' to 'sdigit', possible loss of data
Objects\longobject.c(420,5): warning C4244:  'function': conversion from 'unsigned __int64' to 'sdigit', possible loss of data

See also discussion on PR 16146:
https://github.com/python/cpython/pull/16146#issuecomment-533351728

----------
nosy: +vstinner
resolution: fixed -> 
status: closed -> open

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35696>
_______________________________________


More information about the Python-bugs-list mailing list