summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Objects/listobject.c2
-rw-r--r--Objects/tupleobject.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Objects/listobject.c b/Objects/listobject.c
index 0087c63..7044ede 100644
--- a/Objects/listobject.c
+++ b/Objects/listobject.c
@@ -1461,7 +1461,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;
diff --git a/Objects/tupleobject.c b/Objects/tupleobject.c
index 183fd33..ca76bb5 100644
--- a/Objects/tupleobject.c
+++ b/Objects/tupleobject.c
@@ -414,7 +414,7 @@ tuplerichcompare(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;