Changeset 0b23063 in buchla-68k for ram/etiosc.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/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);
Note: See TracChangeset for help on using the changeset viewer.