[New-bugs-announce] [issue35696] remove unnecessary operation in long_compare()

Ma Lin report at bugs.python.org
Wed Jan 9 04:26:39 EST 2019


New submission from Ma Lin <malincns at 163.com>:

static int
long_compare(PyLongObject *a, PyLongObject *b)
{
    ....
}

This function in /Objects/longobject.c is used to compare two PyLongObject's value.
We only need the sign, converting to -1 or +1 is not necessary.

----------
messages: 333293
nosy: Ma Lin
priority: normal
severity: normal
status: open
title: remove unnecessary operation in long_compare()
versions: Python 3.8

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


More information about the New-bugs-announce mailing list