rand.c: More `Py_ssize_t' fixes.
[catacomb-python] / ec.c
diff --git a/ec.c b/ec.c
index f0747a8..fe5f6fb 100644 (file)
--- a/ec.c
+++ b/ec.c
@@ -443,7 +443,7 @@ static int ecptxl_1(ec_curve *c, ec *p, PyObject *x)
   PyObject *y = 0, *z = 0, *t = 0;
   mp *xx = 0;
   const void *q;
-  int n;
+  Py_ssize_t n;
   qd_parse qd;
 
   Py_XINCREF(x);
@@ -473,6 +473,7 @@ static int ecptxl_1(ec_curve *c, ec *p, PyObject *x)
        (n == 3 && (z = PySequence_GetItem(t, 2)) == 0))
       goto end;
     rc = (n == 2) ? ecptxl_2(c, p, x, y) : ecptxl_3(c, p, x, y, z);
+    goto end;
   } else
     TYERR("can't convert to curve point");
   goto ok;