diff options
Diffstat (limited to 'troff/troff.d/t10.c')
| -rw-r--r-- | troff/troff.d/t10.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/troff/troff.d/t10.c b/troff/troff.d/t10.c index 4a883041224a..d90916a6c0a2 100644 --- a/troff/troff.d/t10.c +++ b/troff/troff.d/t10.c @@ -90,7 +90,7 @@ int Vert; int Unitwidth; int nfonts; static int nsizes; -int nchtab; +size_t nchtab; int lettrack; float horscale; @@ -134,7 +134,7 @@ static void ptlink(int); static void ptulink(int); static void ptyon(int); static void ptchar(int, int); -static void pnc(int, struct afmtab *); +static void pnc(size_t, struct afmtab *); void growfonts(int n) @@ -227,7 +227,7 @@ ptinit(void) nfonts = dev.nfonts; nsizes = dev.nsizes; nchtab = dev.nchtab; - if (nchtab >= NCHARS - 128) { + if (nchtab >= (size_t)NCHARS - 128) { errprint("too many special characters in file %s", termtab); done3(1); @@ -350,7 +350,7 @@ specnames(void) int findch(register const char *s) /* find char s in chname */ { - register int i; + size_t i; for (i = 0; i < nchtab; i++) if (strcmp(s, &chname[chtab[i]]) == 0) @@ -728,7 +728,7 @@ ptout0(tchar *pi, tchar *pend) } static void -pnc(int k, struct afmtab *a) { +pnc(size_t k, struct afmtab *a) { int j; if (k >= nchtab + 128) { |
