summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
Diffstat (limited to 'Objects')
-rw-r--r--Objects/listobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/listobject.c b/Objects/listobject.c
index 6fb3145..7166ced 100644
--- a/Objects/listobject.c
+++ b/Objects/listobject.c
@@ -1512,7 +1512,7 @@ list_richcompare(PyObject *v, PyObject *w, int op)
PyObject *res;
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;