Changeset 0b23063 in buchla-68k


Ignore:
Timestamp:
11/15/2017 08:22:41 PM (6 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
5399628
Parents:
3c45656
Message:

Fixed char array subscripts.

Location:
ram
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • ram/delpnts.c

    r3c45656 r0b23063  
    133133                /* reset first point in function */
    134134
    135                 pp = &vp->idhpnt[fp->idfpt1];
     135                pp = &vp->idhpnt[(int16_t)fp->idfpt1];
    136136
    137137                pp->iptim  = FPU_MINT;
  • ram/etagpt.c

    r3c45656 r0b23063  
    102102        }
    103103
    104         dspbuf[0] = *gprep[ebuf[0]];
     104        dspbuf[0] = *gprep[(int16_t)ebuf[0]];
    105105        dspbuf[1] = '\0';
    106106
  • ram/etiosc.c

    r3c45656 r0b23063  
    113113        }
    114114
    115         cents = (ebuf[0] * 1200) + pitches[ebuf[1]] + shrpflt[ebuf[2] - 7]
    116                 + (ebuf[3] * 10) + ebuf[4] + 160;
     115        cents = (ebuf[0] * 1200) + pitches[(int16_t)ebuf[1]]
     116                + shrpflt[ebuf[2] - 7] + (ebuf[3] * 10) + ebuf[4] + 160;
    117117
    118118        return(SUCCESS);
  • ram/initi.c

    r3c45656 r0b23063  
    6464        register uint16_t tacc;
    6565
    66         pp = &vbufs[curvce].idhpnt[vbufs[curvce].idhfnc[curfunc].idfpt1];
     66        pp = &vbufs[curvce].idhpnt[(int16_t)vbufs[curvce].idhfnc[curfunc].idfpt1];
    6767        tacc = 0;
    6868
     
    8787        register struct instpnt *pp;
    8888
    89         pp = &vbufs[curvce].idhpnt[vbufs[curvce].idhfnc[curfunc].idfpt1];
     89        pp = &vbufs[curvce].idhpnt[(int16_t)vbufs[curvce].idhfnc[curfunc].idfpt1];
    9090        tacc = 0;
    9191
  • ram/instdsp.c

    r3c45656 r0b23063  
    198198        npt2 = 1;               /* right endpoint of line */
    199199
    200         pt1 = &ip->idhpnt[fp->idfpt1];          /* left endpoint of line */
     200        pt1 = &ip->idhpnt[(int16_t)fp->idfpt1]; /* left endpoint of line */
    201201        pt2 = pt1 + 1;                          /* right endpoint of line */
    202202
     
    412412                        idbuf[0] = (int8_t)(idbuf[0] + '0');
    413413                        idbuf[1] = (int8_t)(idbuf[1] + 'A');
    414                         idbuf[2] = sfdsp[idbuf[2]];
     414                        idbuf[2] = sfdsp[(int16_t)idbuf[2]];
    415415                        idbuf[3] = (int8_t)(idbuf[3] + '0');
    416416                        idbuf[4] = (int8_t)(idbuf[4] + '0');
  • ram/ldselbx.c

    r3c45656 r0b23063  
    133133        }
    134134
    135         if (skp_ec(fp, (int32_t)(scsizes[etype][1] - 1))) {     /* skip data */
     135        if (skp_ec(fp, (int32_t)(scsizes[(int16_t)etype][1] - 1))) {    /* skip data */
    136136
    137137                skperr(ns);
     
    150150                /* skip the event's data */
    151151
    152                 if (skp_ec(fp, (int32_t)(scsizes[etype][1] - 1))) {
     152                if (skp_ec(fp, (int32_t)(scsizes[(int16_t)etype][1] - 1))) {
    153153
    154154                        skperr(ns);
  • ram/scread.c

    r3c45656 r0b23063  
    251251
    252252                        if (etype EQ EV_SBGN)
    253                                 seclist[sn][ep->e_data1] = ep;
     253                                seclist[sn][(int16_t)ep->e_data1] = ep;
    254254
    255255                        break;
  • ram/scwrite.c

    r3c45656 r0b23063  
    7676                ep->e_type &= 0x7F;             /* clear new-data flag */
    7777
    78                 nl += scsizes[ep->e_type][0];
    79                 nb += scsizes[ep->e_type][1];
     78                nl += scsizes[(int16_t)ep->e_type][0];
     79                nb += scsizes[(int16_t)ep->e_type][1];
    8080
    8181                switch (ep->e_type) {
  • ram/sedump.c

    r3c45656 r0b23063  
    7777        x_unrec = FALSE;
    7878
    79         return(evkinds[sep->e_type]);
     79        return(evkinds[(int16_t)sep->e_type]);
    8080}
    8181
Note: See TracChangeset for help on using the changeset viewer.