aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/tpic
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-04-20 21:23:16 +0000
committerrsc <devnull@localhost>2006-04-20 21:23:16 +0000
commit8c7b4c825f3630947fd3c715ba1325761b12b54d (patch)
tree82d7fe6647c2d057b40341daf175346454147e4f /src/cmd/tpic
parent5917e959535e26c206d6cdc9ab354aa21d3e6eaf (diff)
downloadplan9port-8c7b4c825f3630947fd3c715ba1325761b12b54d.tar.gz
plan9port-8c7b4c825f3630947fd3c715ba1325761b12b54d.tar.bz2
plan9port-8c7b4c825f3630947fd3c715ba1325761b12b54d.zip
64-bit fixes
Diffstat (limited to 'src/cmd/tpic')
-rw-r--r--src/cmd/tpic/input.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cmd/tpic/input.c b/src/cmd/tpic/input.c
index 78b6cfb3..cc7dacf1 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 ", srcp - src);
+ printf("\n%3d ", (long)(srcp - src));
switch (srcp->type) {
case File:
printf("push file %s\n", ((Infile *)ptr)->fname);
@@ -52,7 +52,7 @@ popsrc(void) /* restore an old one */
if (srcp <= src)
ERROR "too many inputs popped" FATAL;
if (dbg > 1) {
- printf("%3d ", srcp - src);
+ printf("%3ld ", (long)(srcp - src));
switch (srcp->type) {
case File:
printf("pop file\n");
@@ -187,7 +187,7 @@ dodef(struct symtab *stp) /* collect args and switch input to defn */
ap->argstk[i] = "";
if (dbg)
for (i = 0; i < argcnt; i++)
- printf("arg %d.%d = <%s>\n", ap-args, i+1, ap->argstk[i]);
+ printf("arg %ld.%d = <%s>\n", (long)(ap-args), i+1, ap->argstk[i]);
argfp = ap;
pushsrc(Macro, stp->s_val.p);
}
@@ -387,7 +387,7 @@ do_thru(void) /* read one line, make into a macro expansion */
ap->argstk[i] = "";
if (dbg)
for (i = 0; i < argcnt; i++)
- printf("arg %d.%d = <%s>\n", ap-args, i+1, ap->argstk[i]);
+ printf("arg %ld.%d = <%s>\n", (long)(ap-args), i+1, ap->argstk[i]);
if (strcmp(ap->argstk[0], ".PE") == 0) {
thru = 0;
thrudef = 0;