From: Mark Wooding Date: Fri, 18 Oct 2019 20:17:37 +0000 (+0100) Subject: ec.c: Don't drop through into an error case. X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb-python/commitdiff_plain/2c1ccbae1631ac8fc3c7332222c38a32e6ad2d17 ec.c: Don't drop through into an error case. --- diff --git a/ec.c b/ec.c index 64ac276..3cd52bc 100644 --- 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));