X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/67ea728586cfcdb4815bd1dde6f85da222ef94ff..bb77b1d1f5d16f3e8fce3d15fc2d88eb0597346f:/math/ec-test.c diff --git a/math/ec-test.c b/math/ec-test.c index db59294..26daeef 100644 --- a/math/ec-test.c +++ b/math/ec-test.c @@ -137,7 +137,7 @@ static void ecvcvt(const char *buf, dstr *d) qd.e = 0; if ((v = ec_curveparse(&qd)) == 0) { fprintf(stderr, "bad curve `%.*s|%s': %s\n", - qd.p - buf, buf, qd.p, qd.e); + (int)(qd.p - buf), buf, qd.p, qd.e); exit(1); } dstr_ensure(d, sizeof(v)); @@ -165,7 +165,8 @@ static void eccvt(const char *p, dstr *d) d->len += sizeof(ec); ec_create(a); if (!ec_ptparse(&qd, a)) { - fprintf(stderr, "bad point `%.*s|%s': %s\n", qd.p - p, p, qd.p, qd.e); + fprintf(stderr, "bad point `%.*s|%s': %s\n", + (int)(qd.p - p), p, qd.p, qd.e); exit(1); } }