Changeset 3c45656 in buchla-68k


Ignore:
Timestamp:
11/15/2017 08:17:05 PM (6 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
0b23063
Parents:
8d0af8a
Message:

Fixed constant overflow warnings.

Location:
ram
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • ram/asgvce.c

    r8d0af8a r3c45656  
    8383                        DB_CMNT("ne_end - enter note end");
    8484                        ep->e_time  = t_cur;
    85                         ep->e_type  = EV_NEND | 0x80;
     85                        ep->e_type  = (int8_t)(EV_NEND | 0x80);
    8686                        ep->e_note  = (int8_t)nn;
    8787                        ep->e_group = (int8_t)grp;
     
    132132                                        DB_CMNT("ne_end - enter note end");
    133133                                        ep->e_time  = t_cur;
    134                                         ep->e_type  = EV_NEND | 0x80;
     134                                        ep->e_type  = (int8_t)(EV_NEND | 0x80);
    135135                                        ep->e_note  = (int8_t)nn;
    136136                                        ep->e_group = (int8_t)grp;
     
    245245                        DB_CMNT("ne_bgn - enter note begin");
    246246                        ep->e_time  = t_cur;
    247                         ep->e_type  = EV_NBEG | 0x80;
     247                        ep->e_type  = (int8_t)(EV_NBEG | 0x80);
    248248                        ep->e_note  = (int8_t)key;
    249249                        ep->e_group = (int8_t)grp;
  • ram/etimlt.c

    r8d0af8a r3c45656  
    2727                mltstr[1] = '.';
    2828        else
    29                 mltstr[1] = SP_1P;
     29                mltstr[1] = (int8_t)SP_1P;
    3030
    3131        mltstr[2] = mlttmp[1];          /* 2nd digit */
     
    251251
    252252                        ebuf[1] = '1';
    253                         dspbuf[0] = SP_1P;      /* setup display buffer */
     253                        dspbuf[0] = (int8_t)SP_1P;      /* setup display buffer */
    254254
    255255                } else
  • ram/etiosc.c

    r8d0af8a r3c45656  
    2323int16_t shrpflt[] = {  0, -100,    100};
    2424
    25 int8_t  sfdsp[]   = {' ', D_FLAT,  D_SHARP};
     25int8_t  sfdsp[]   = {' ', (int8_t)D_FLAT, (int8_t)D_SHARP};
    2626
    2727static  int8_t  intstr[] = "+0000";
  • ram/etival.c

    r8d0af8a r3c45656  
    252252
    253253                        ebuf[6] = '1';
    254                         dspbuf[0] = SP_1P;
     254                        dspbuf[0] = (int8_t)SP_1P;
    255255
    256256                } else
  • ram/ettrns.c

    r8d0af8a r3c45656  
    136136
    137137                if (dspbuf[0] EQ '1')
    138                         dspbuf[0] = SP_M1;      /* -1 */
     138                        dspbuf[0] = (int8_t)SP_M1;      /* -1 */
    139139                else
    140140                        dspbuf[0] = '-';
     
    143143
    144144                if (dspbuf[0] EQ '1')
    145                         dspbuf[0] = SP_P1;      /* +1 */
     145                        dspbuf[0] = (int8_t)SP_P1;      /* +1 */
    146146                else
    147147                        dspbuf[0] = '+';
  • ram/m7menu.c

    r8d0af8a r3c45656  
    2424static int8_t   ml01[61], ml02[61], ml03[61], ml04[61], ml05[61];
    2525
    26 static int8_t mlc01[] = {1, 0xBA,  58, 0xB1,  1, 0xBB,  -1};
    27 static int8_t mlc02[] = {1, 0xB6,  29, 0xB1,  1, 0xB7,  28, 0xB1,  1, 0xB4,  -1};
    28 static int8_t mlc03[] = {1, 0xB6,  29, 0xB1,  1, 0xB2,  28, 0xB1,  1, 0xB4,  -1};
    29 static int8_t mlc04[] = {1, 0xB6,  29, 0xB1,  1, 0xB5,  28, 0xB1,  1, 0xB4,  -1};
    30 static int8_t mlc05[] = {1, 0xB9,  58, 0xB1,  1, 0xB8,  -1};
     26static int8_t mlc01[] = {1, (int8_t)0xBA,  58, (int8_t)0xB1,  1, (int8_t)0xBB,  -1};
     27static int8_t mlc02[] = {1, (int8_t)0xB6,  29, (int8_t)0xB1,  1, (int8_t)0xB7,  28, (int8_t)0xB1,  1, (int8_t)0xB4,  -1};
     28static int8_t mlc03[] = {1, (int8_t)0xB6,  29, (int8_t)0xB1,  1, (int8_t)0xB2,  28, (int8_t)0xB1,  1, (int8_t)0xB4,  -1};
     29static int8_t mlc04[] = {1, (int8_t)0xB6,  29, (int8_t)0xB1,  1, (int8_t)0xB5,  28, (int8_t)0xB1,  1, (int8_t)0xB4,  -1};
     30static int8_t mlc05[] = {1, (int8_t)0xB9,  58, (int8_t)0xB1,  1, (int8_t)0xB8,  -1};
    3131
    3232static int8_t   *mtexts[] = {
  • ram/midas.c

    r8d0af8a r3c45656  
    1010#include "ram.h"
    1111
    12 #define LCD_TIME        ((int32_t)(800 * 240))  /* LCD backlight 'on' time */
     12#define LCD_TIME        ((int32_t)800 * (int32_t)240)   /* LCD backlight 'on' time */
    1313
    1414#if     DEBUGIT
  • ram/msm.c

    r8d0af8a r3c45656  
    129129                                                case 6:         /* active sensing */
    130130
    131                                                         masens[miport] |= 0x00FF;
     131                                                        masens[miport] |= (int8_t)0x00FF;
    132132                                                        break;
    133133
     
    219219                                                case 6:         /* active sensing */
    220220
    221                                                         masens[miport] |= 0x00FF;
     221                                                        masens[miport] |= (int8_t)0x00FF;
    222222                                                        break;
    223223
     
    385385                                                case 6:         /* active sensing */
    386386
    387                                                         masens[miport] |= 0x00FF;
     387                                                        masens[miport] |= (int8_t)0x00FF;
    388388                                                        break;
    389389
     
    480480                                                case 6:         /* active sensing */
    481481
    482                                                         masens[miport] |= 0x00FF;
     482                                                        masens[miport] |= (int8_t)0x00FF;
    483483                                                        break;
    484484
Note: See TracChangeset for help on using the changeset viewer.