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
/
group-test.c
diff --git
a/math/group-test.c
b/math/group-test.c
index 8541b48530ab6ea0191e8809f6d669de9f7bf9d2..493ee2f7e4e7c5b921c63b04af7bd7876b95da6a 100644
(file)
--- a/
math/group-test.c
+++ b/
math/group-test.c
@@
-42,8
+42,11
@@
static group *getgroup(const char *p) {
group *g; qd_parse qd;
qd.p = p; qd.e = 0; g = group_parse(&qd);
if (g && !qd_eofp(&qd)) { G_DESTROYGROUP(g); g = 0; qd.e = "junk at eof"; }
group *g; qd_parse qd;
qd.p = p; qd.e = 0; g = group_parse(&qd);
if (g && !qd_eofp(&qd)) { G_DESTROYGROUP(g); g = 0; qd.e = "junk at eof"; }
- if (!g) { fprintf(stderr, "bad group string `%.*s|%s': %s\n", qd.p - p,
- p, qd.p, qd.e); exit(1); }
+ if (!g) {
+ fprintf(stderr, "bad group string `%.*s|%s': %s\n",
+ (int)(qd.p - p), p, qd.p, qd.e);
+ exit(1);
+ }
return (g);
}
return (g);
}