mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Cprrect stuoid tyops -- was comparing variabes with themselves because
of co/cp mixup.
This commit is contained in:
parent
eaedc7ce32
commit
beef8aa719
1 changed files with 3 additions and 3 deletions
|
@ -141,11 +141,11 @@ code_compare(co, cp)
|
|||
PyCodeObject *co, *cp;
|
||||
{
|
||||
int cmp;
|
||||
cmp = cp->co_argcount - cp->co_argcount;
|
||||
cmp = co->co_argcount - cp->co_argcount;
|
||||
if (cmp) return cmp;
|
||||
cmp = cp->co_nlocals - cp->co_nlocals;
|
||||
cmp = co->co_nlocals - cp->co_nlocals;
|
||||
if (cmp) return cmp;
|
||||
cmp = cp->co_flags - cp->co_flags;
|
||||
cmp = co->co_flags - cp->co_flags;
|
||||
if (cmp) return cmp;
|
||||
cmp = PyObject_Compare((PyObject *)co->co_code,
|
||||
(PyObject *)cp->co_code);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue