]> granicus.if.org Git - python/commitdiff
Correct one-line typo, reported by yole @ SF, bug 130077.
authorGuido van Rossum <guido@python.org>
Thu, 25 Jan 2001 22:12:43 +0000 (22:12 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 25 Jan 2001 22:12:43 +0000 (22:12 +0000)
Modules/arraymodule.c

index 374b3ac3905d17b891806142ce237eea797b5369..edc2f0bec3433d1ac7b98eb447a1bf850d7f935a 100644 (file)
@@ -467,7 +467,7 @@ array_richcompare(PyObject *v, PyObject *w, int op)
                int cmp;
                switch (op) {
                case Py_LT: cmp = vs <  ws; break;
-               case Py_LE: cmp = ws <= ws; break;
+               case Py_LE: cmp = vs <= ws; break;
                case Py_EQ: cmp = vs == ws; break;
                case Py_NE: cmp = vs != ws; break;
                case Py_GT: cmp = vs >  ws; break;