aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/eqn/sqrt.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-02-04 20:26:35 +0000
committerrsc <devnull@localhost>2006-02-04 20:26:35 +0000
commiteb9be70308f0397b13312e2472d7764d481e5a73 (patch)
tree9a7200cc5c340e54b719ff893a2b8dfccf5c93aa /src/cmd/eqn/sqrt.c
parentc48193be0d399f17d4aeb69f41a1aa3778a1c74b (diff)
downloadplan9port-eb9be70308f0397b13312e2472d7764d481e5a73.tar.gz
plan9port-eb9be70308f0397b13312e2472d7764d481e5a73.tar.bz2
plan9port-eb9be70308f0397b13312e2472d7764d481e5a73.zip
print warnings
Diffstat (limited to 'src/cmd/eqn/sqrt.c')
-rw-r--r--src/cmd/eqn/sqrt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/eqn/sqrt.c b/src/cmd/eqn/sqrt.c
index 391d924e..667c3be7 100644
--- a/src/cmd/eqn/sqrt.c
+++ b/src/cmd/eqn/sqrt.c
@@ -19,13 +19,13 @@ void sqrt(int p2)
eht[yyval] = EM(1.15, nps);
dprintf(".\tS%d <- sqrt S%d;b=%g, h=%g, nps=%d\n",
yyval, p2, ebase[yyval], eht[yyval], nps);
- printf(".as %d \\|\n", yyval);
+ printf(".as %d \\|\n", (int)yyval);
nrwid(p2, ps, p2);
if (af++ == 0)
printf(".af 10 01\n"); /* make it two digits when it prints */
printf(".nr 10 %.3fu*\\n(.su/10\n", 9.2*eht[p2]); /* this nonsense */
/* guesses point size corresponding to height of stuff */
- printf(".ds %d \\v'%gm'\\s(\\n(10", yyval, REL(ebase[p2],ps));
+ printf(".ds %d \\v'%gm'\\s(\\n(10", (int)yyval, REL(ebase[p2],ps));
if (ttype == DEVCAT || ttype == DEVAPS)
printf("\\v'-.2m'\\(sr\\l'\\n(%du\\(rn'\\v'.2m'", p2);
else /* DEV202, DEVPOST so far */