X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/0f00dc4c8eb47e67bc0f148c2dd109f73a451e0a..5937940fc6c45b93eb95554996d1cd1b5a1bf307:/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); } }