chiark
/
gitweb
/
~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Mollify various warnings which occur in 64-bit builds.
[catacomb]
/
math
/
ec-test.c
diff --git
a/math/ec-test.c
b/math/ec-test.c
index db59294c663fccc2e3b47ed44a4cb705642ad5b1..26daeef1ff3c49e9e95a725817caeac928b691be 100644
(file)
--- 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.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));
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)) {
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);
}
}
exit(1);
}
}