ec.c: Don't drop through into an error case.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 18 Oct 2019 20:17:37 +0000 (21:17 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 17 Nov 2019 02:50:40 +0000 (02:50 +0000)
ec.c

diff --git a/ec.c b/ec.c
index 64ac276..3cd52bc 100644 (file)
--- a/ec.c
+++ b/ec.c
@@ -790,7 +790,7 @@ static PyObject *eccurve_pyrichcompare(PyObject *x, PyObject *y, int op)
   int b = ec_samep(ECCURVE_C(x), ECCURVE_C(y));
   switch (op) {
     case Py_EQ: break;
-    case Py_NE: b = !b;
+    case Py_NE: b = !b; break;
     default: TYERR("can't order elliptic curves");
   }
   return (getbool(b));