plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit 8bda92cce22ff1fda6774c102db113763b0df4a6
parent 3fe9465ac99f9aa3a23f71f01df9e097f0c1da87
Author: rsc <devnull@localhost>
Date:   Thu, 20 Apr 2006 22:56:08 +0000

cast

Diffstat:
Msrc/cmd/tbl/t5.c | 2+-
Msrc/cmd/tpic/input.c | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 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 @@ -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);