tmore casts - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 6cb755b60b5bc5410bd90c37f3bf3b50ebcfe789
 (DIR) parent 98bfdd28674d3c75aa349fd36eb55d238ce6bb30
 (HTM) Author: rsc <devnull@localhost>
       Date:   Mon,  6 Feb 2006 19:30:02 +0000
       
       more casts
       
       Diffstat:
         M src/cmd/eqn/fromto.c                |       6 +++---
         M src/cmd/eqn/matrix.c                |       2 +-
         M src/cmd/eqn/pile.c                  |       2 +-
         M src/cmd/eqn/size.c                  |       2 +-
         M src/cmd/eqn/sqrt.c                  |       2 +-
       
       5 files changed, 7 insertions(+), 7 deletions(-)
       ---
 (DIR) diff --git a/src/cmd/eqn/fromto.c b/src/cmd/eqn/fromto.c
       t@@ -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", 
       t@@ -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);
 (DIR) diff --git a/src/cmd/eqn/matrix.c b/src/cmd/eqn/matrix.c
       t@@ -69,7 +69,7 @@ void matrix(int oct)        /* matrix is list of columns */
                ebase[yyval] = ebase[val[0]];
                lfont[yyval] = rfont[yyval] = 0;
                dprintf(".\tmatrix S%d: r=%d, c=%d, h=%g, b=%g\n",
       -                yyval,nrow,ncol,eht[yyval],ebase[yyval]);
       +                (int)yyval,nrow,ncol,eht[yyval],ebase[yyval]);
                printf(".ds %d \"", (int)yyval);
                for( i=0; i<ncol; i++ )  {
                        printf("\\*(%d%s", val[i], i==ncol-1 ? "" : space);
 (DIR) diff --git a/src/cmd/eqn/pile.c b/src/cmd/eqn/pile.c
       t@@ -63,7 +63,7 @@ void pile(int oct)
                                printf("\\v'%gm'\\h'\\n(%du-\\n(%du/2u'\\*(%d", 
                                        REL(-bi,ps), (int)yyval, lp[i], lp[i]);
                                printf("\\h'-\\n(%du-\\n(%du/2u'\\v'%gm'\\\n", 
       -                                yyval, lp[i], REL(bi,ps));
       +                                (int)yyval, lp[i], REL(bi,ps));
                                break;
                        }
                        sb += eht[lp[i]] + gap;
 (DIR) diff --git a/src/cmd/eqn/size.c b/src/cmd/eqn/size.c
       t@@ -30,7 +30,7 @@ void size(int p1, int p2)
                        /* old size in p1, new in ps */
                yyval = p2;
                dprintf(".\tS%d <- \\s%d %d \\s%d; b=%g, h=%g\n", 
       -                yyval, ps, p2, p1, ebase[yyval], eht[yyval]);
       +                (int)yyval, ps, p2, p1, ebase[yyval], eht[yyval]);
                if (szstack[nszstack] != 0) {
                        printf(".ds %d %s\\*(%d\\s\\n(%d\n", (int)yyval, ABSPS(ps), p2, 99-nszstack);
                } else
 (DIR) diff --git a/src/cmd/eqn/sqrt.c b/src/cmd/eqn/sqrt.c
       t@@ -18,7 +18,7 @@ void sqrt(int p2)
                else                /* DEV202, DEVPOST */
                        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);
       +                (int)yyval, p2, ebase[yyval], eht[yyval], nps);
                printf(".as %d \\|\n", (int)yyval);
                nrwid(p2, ps, p2);
                if (af++ == 0)