aboutsummaryrefslogtreecommitdiff
path: root/src/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd')
-rw-r--r--src/cmd/tbl/t5.c2
-rw-r--r--src/cmd/tpic/input.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/tbl/t5.c b/src/cmd/tbl/t5.c
index 3b12d98f..e23784be 100644
--- a/src/cmd/tbl/t5.c
+++ b/src/cmd/tbl/t5.c
@@ -61,7 +61,7 @@ gettbl(void)
ch = 1;
if (match(cstore, "T{")) { /* text follows */
table[nlin][icol].col =
- (char *)gettext(cstore, nlin, icol,
+ (char *)(uintptr)gettext(cstore, nlin, icol,
font[icol][stynum[nlin]],
csize[icol][stynum[nlin]]);
} else
diff --git a/src/cmd/tpic/input.c b/src/cmd/tpic/input.c
index cc7dacf1..a5928ece 100644
--- a/src/cmd/tpic/input.c
+++ b/src/cmd/tpic/input.c
@@ -20,7 +20,7 @@ pushsrc(int type, char *ptr) /* new input source */
srcp->type = type;
srcp->sp = ptr;
if (dbg > 1) {
- printf("\n%3d ", (long)(srcp - src));
+ printf("\n%3ld ", (long)(srcp - src));
switch (srcp->type) {
case File:
printf("push file %s\n", ((Infile *)ptr)->fname);