summaryrefslogtreecommitdiffstats
path: root/src/cmd/eqn/fromto.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-02-06 19:30:02 +0000
committerrsc <devnull@localhost>2006-02-06 19:30:02 +0000
commit6cb755b60b5bc5410bd90c37f3bf3b50ebcfe789 (patch)
tree668a4acf566f861fd377408433aff31a924e77d7 /src/cmd/eqn/fromto.c
parent98bfdd28674d3c75aa349fd36eb55d238ce6bb30 (diff)
downloadplan9port-6cb755b60b5bc5410bd90c37f3bf3b50ebcfe789.tar.gz
plan9port-6cb755b60b5bc5410bd90c37f3bf3b50ebcfe789.zip
more casts
Diffstat (limited to 'src/cmd/eqn/fromto.c')
-rw-r--r--src/cmd/eqn/fromto.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/eqn/fromto.c b/src/cmd/eqn/fromto.c
index 88677b22..cf9c96e5 100644
--- a/src/cmd/eqn/fromto.c
+++ b/src/cmd/eqn/fromto.c
@@ -31,10 +31,10 @@ void fromto(int p1, int p2, int p3)
printf("\\v'%gm'\\h'\\n(%du-\\n(%du/2u'%s\\*(%d%s",
REL(t,ps), (int)yyval, p2, DPS(ps,subps), p2, DPS(subps,ps));
printf("\\h'-\\n(%du-\\n(%du/2u'\\v'%gm'\\\n",
- yyval, p2, REL(-t,ps));
+ (int)yyval, p2, REL(-t,ps));
}
printf("\\h'\\n(%du-\\n(%du/2u'\\*(%d\\h'\\n(%du-\\n(%du/2u'\\\n",
- yyval, p1, p1, (int)yyval, p1);
+ (int)yyval, p1, p1, (int)yyval, p1);
if (p3 >0) {
t = h1-b1+ebase[p3];
printf("\\v'%gm'\\h'-\\n(%du-\\n(%du/2u'%s\\*(%d%s\\h'\\n(%du-\\n(%du/2u'\\v'%gm'\\\n",
@@ -43,7 +43,7 @@ void fromto(int p1, int p2, int p3)
printf("\n");
ebase[yyval] = b + b1;
dprintf(".\tS%d <- %d from %d to %d; h=%g b=%g\n",
- yyval, p1, p2, p3, eht[yyval], ebase[yyval]);
+ (int)yyval, p1, p2, p3, eht[yyval], ebase[yyval]);
sfree(p1);
if (p2 > 0)
sfree(p2);