Mercurial > cpython-lru_cache-weakref
diff Python/compile.c @ 6186:2e755d1ff661 legacy-trunk
Cprrect stuoid tyops -- was comparing variabes with themselves because
of co/cp mixup.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Fri, 29 Aug 1997 17:12:43 +0000 |
| parents | ba49a6ef7214 |
| children | c9b139b9c5ff |
line wrap: on
line diff
--- a/Python/compile.c Thu Aug 28 22:36:40 1997 +0000 +++ b/Python/compile.c Fri Aug 29 17:12:43 1997 +0000 @@ -141,11 +141,11 @@ 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);
