Changeset cdb0f36 in buchla-68k


Ignore:
Timestamp:
11/12/2017 09:24:58 PM (6 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
9738a78
Parents:
081eee0
Message:

Fixed etdyn.c.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ram/etdyn.c

    r081eee0 rcdb0f36  
    1616int16_t et_dyn(int16_t n)
    1717{
    18         ebuf[0] =grpdyn[n] + '0';
     18        ebuf[0] = (int8_t)(grpdyn[n] + '0');
    1919        ebuf[1] = '\0';
    2020        ebflag = TRUE;
     
    4343                if (E_NULL NE (ep = findev(p_cur, t_cur, EV_DYN, n, -1))) {
    4444
    45                         ep->e_data2 = ival;
     45                        ep->e_data2 = (int8_t)ival;
    4646
    4747                } else if (E_NULL NE (ep = e_alc(E_SIZE2))) {
    4848
    4949                        ep->e_type  = EV_DYN;
    50                         ep->e_data1 = n;
    51                         ep->e_data2 = ival;
     50                        ep->e_data1 = (int8_t)n;
     51                        ep->e_data2 = (int8_t)ival;
    5252                        ep->e_time  = t_cur;
    5353                        p_cur = e_ins(ep, ep_adj(p_cur, 0, t_cur))->e_fwd;
     
    102102        (void)n;
    103103
    104         ebuf[0]  = k + '0';
     104        ebuf[0]  = (int8_t)(k + '0');
    105105
    106106        if (v_regs[5] & 0x0180)
Note: See TracChangeset for help on using the changeset viewer.