Changeset bbf1e66 in buchla-68k


Ignore:
Timestamp:
11/12/2017 09:00:25 PM (6 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
e2707e9
Parents:
81a59aa
Message:

Fixed etival.c.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ram/etival.c

    r81a59aa rbbf1e66  
    2727
    2828        sprintf(ebuf, "%02d.%02d", vh, vl);
    29         ebuf[5] = '0' + pntptr->ipvsrc;
     29        ebuf[5] = (int8_t)('0' + pntptr->ipvsrc);
    3030        fr2dec(pntptr->ipvmlt, &ebuf[6]);
    3131        ebuf[10] = '\0';
     
    107107                }
    108108
    109                 pntptr->ipvsrc = srctmp;        /* set the source */
    110                 objclr(TTCPRI);                 /* turn off the menu cursor */
    111                 idvlblc();                      /* blank the menu area */
    112                 dswin(22);                      /* refresh the screen */
     109                pntptr->ipvsrc = (int8_t)srctmp;        /* set the source */
     110                objclr(TTCPRI);                         /* turn off the menu cursor */
     111                idvlblc();                              /* blank the menu area */
     112                dswin(22);                              /* refresh the screen */
    113113                modinst();
    114114
     
    224224        if (stccol LT 32) {             /* value */
    225225
    226                 ebuf[stccol - 27] = k + '0';
    227                 dspbuf[0] = k + '0';
     226                ebuf[stccol - 27] = (int8_t)(k + '0');
     227                dspbuf[0] = (int8_t)(k + '0');
    228228
    229229        } else if (stccol EQ 41) {      /* mutiplier sign */
     
    259259        } else {                                /* 2nd or 3rd digit */
    260260
    261                 ebuf[stccol - 36] = k + '0';
    262                 dspbuf[0] = k + '0';
     261                ebuf[stccol - 36] = (int8_t)(k + '0');
     262                dspbuf[0] = (int8_t)(k + '0');
    263263        }
    264264
Note: See TracChangeset for help on using the changeset viewer.