Changeset 432327d in buchla-68k for ram/asgdsp.c


Ignore:
Timestamp:
09/17/2017 09:27:29 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
6099cac
Parents:
8c8b4e5
Message:

Fix conversion warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ram/asgdsp.c

    r8c8b4e5 r432327d  
    238238*/
    239239
    240 void keycpyw(volatile uint16_t *dest, volatile uint16_t *src, int16_t len, uint16_t wk, uint16_t bk)
     240void keycpyw(volatile uint16_t *dest, volatile uint16_t *src, int16_t len, int16_t wk, int16_t bk)
    241241{
    242242        uint16_t wkey, bkey, theword;
     
    358358                vbank(0);
    359359
    360         vputp(adoct, x, y, exp_c(pen));
     360        vputp(adoct, x, y, pen);
    361361}
    362362
     
    389389void adswin(int16_t n)
    390390{
    391         register int16_t cx, i;
     391        uint16_t cx;
     392        int16_t i;
    392393        int8_t buf1[4], buf2[4];
    393394
     
    512513                        if ((mctlnum[i] NE -1) AND (mctlnum[i] & CTAG1)) {
    513514
    514                                 bfs[0] = '2' + i;
     515                                bfs[0] = (int8_t)('2' + i);
    515516                                bfs[1] = '\0';
    516517
     
    603604        case 7:         /* port 1 key to group assignments */
    604605
    605                 lseg(  8, 153,  15, 153, exp_c(adbox[n][4]));   /* underlines */
    606                 lseg(496, 153, 503, 153, exp_c(adbox[n][4]));
     606                lseg(  8, 153,  15, 153, adbox[n][4]);  /* underlines */
     607                lseg(496, 153, 503, 153, adbox[n][4]);
    607608
    608609                asgkb();                                        /* icon */
     
    719720
    720721        *(psg + PSG_ADDR) = PSG_PRTB;           /* read current psg data */
    721         psgdata = *(psg + PSG_READ) & ~AUX_BIT;
     722        psgdata = (uint8_t)(*(psg + PSG_READ) & ~AUX_BIT);
    722723
    723724        *(psg + PSG_ADDR) = PSG_PRTB;           /* send out updated aux data */
    724         *(psg + PSG_WRIT) = psgdata | (aux ? 0 : AUX_BIT);
     725        *(psg + PSG_WRIT) = (uint8_t)(psgdata | (aux ? 0 : AUX_BIT));
    725726}
    726727
Note: See TracChangeset for help on using the changeset viewer.