From a5f3a00bcd0452d78afc5d8064da611d4b448093 Mon Sep 17 00:00:00 2001 From: rsc Date: Thu, 20 Apr 2006 21:00:21 +0000 Subject: 64-bit safe --- src/cmd/tbl/tm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/cmd/tbl/tm.c') diff --git a/src/cmd/tbl/tm.c b/src/cmd/tbl/tm.c index 8fa4e497..5b58f0d1 100644 --- a/src/cmd/tbl/tm.c +++ b/src/cmd/tbl/tm.c @@ -5,8 +5,8 @@ char * maknew(char *str) { /* make two numerical fields */ - int dpoint, c; - char *p, *q, *ba; + int c; + char *p, *q, *ba, *dpoint; p = str; for (ba = 0; c = *str; str++) @@ -18,7 +18,7 @@ maknew(char *str) if (*str == '.' && !ineqn(str, p) && (str > p && digit(*(str - 1)) || digit(*(str + 1)))) - dpoint = (int)str; + dpoint = str; } if (dpoint == 0) for (; str > p; str--) { @@ -28,7 +28,7 @@ maknew(char *str) if (!dpoint && p == str) /* not numerical, don't split */ return(0); if (dpoint) - str = (char *)dpoint; + str = dpoint; } else str = ba; p = str; -- cgit v1.2.3