chiark
/
gitweb
/
~mdw
/
catacomb-python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2ee1ed3
)
ec.c: Don't drop through into an error case.
author
Mark Wooding
<mdw@distorted.org.uk>
Fri, 18 Oct 2019 20:17:37 +0000
(21:17 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sun, 17 Nov 2019 02:50:40 +0000
(
02:50
+0000)
ec.c
patch
|
blob
|
blame
|
history
diff --git
a/ec.c
b/ec.c
index 64ac27613cb5791f0b7f27fb732038894af1e98e..3cd52bc3df1cdeab5cd245d8dc14bb68d39e477c 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;
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));
default: TYERR("can't order elliptic curves");
}
return (getbool(b));