Changeset 0b23063 in buchla-68k for ram/instdsp.c


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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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');
Note: See TracChangeset for help on using the changeset viewer.