aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/tbl/tm.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-04-20 21:00:21 +0000
committerrsc <devnull@localhost>2006-04-20 21:00:21 +0000
commita5f3a00bcd0452d78afc5d8064da611d4b448093 (patch)
treef037f35d470d699c90cbf78888620a9155d7cfbd /src/cmd/tbl/tm.c
parent71e936d7166b088aa3e2ec55d14b53cb2a3ac5ec (diff)
downloadplan9port-a5f3a00bcd0452d78afc5d8064da611d4b448093.tar.gz
plan9port-a5f3a00bcd0452d78afc5d8064da611d4b448093.tar.bz2
plan9port-a5f3a00bcd0452d78afc5d8064da611d4b448093.zip
64-bit safe
Diffstat (limited to 'src/cmd/tbl/tm.c')
-rw-r--r--src/cmd/tbl/tm.c8
1 files changed, 4 insertions, 4 deletions
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;