Changeset 432327d in buchla-68k for ram/etadyn.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/etadyn.c

    r8c8b4e5 r432327d  
    2020        grp = 0x00FF & (n >> 8);
    2121
    22         ebuf[0] = grpdyn[grp] + '0';
     22        ebuf[0] = (int8_t)(grpdyn[grp] + '0');
    2323        ebuf[1] = '\0';
    2424
     
    4040        struct idfnhdr *fp;
    4141        uint16_t fpmant, fpexp;
    42         int16_t oldsr;
     42        uint16_t oldsr;
    4343        int16_t nop;
    4444
     
    4747        g = grp + 1;
    4848
    49         fpmant = (((int32_t)curintp & 0x0000FFF0L) *
    50                   ((int32_t)timemlt & 0x0000FFFFL)) >> 15;
     49        fpmant = (uint16_t)((((int32_t)curintp & 0x0000FFF0L) *
     50                  ((int32_t)timemlt & 0x0000FFFFL)) >> 15);
    5151
    5252        fpexp = expbit[curintp & 0x000F];
     
    7070
    7171                        if (fp->idftmd & I_VNSUBN)
    72                                 *(fpu + (int32_t)FPU_TNV1) = val;
     72                                *(fpu + (int32_t)FPU_TNV1) = (uint16_t)val;
    7373                        else
    74                                 *(fpu + (int32_t)FPU_TNV0) = val;
     74                                *(fpu + (int32_t)FPU_TNV0) = (uint16_t)val;
    7575
    7676                        ++nop;  ++nop;  ++nop;
    7777
    7878                        *(fpu + (int32_t)FPU_TCTL) =
    79                                 (fp->idftmd & (I_NRATIO | I_NVBITS)) | 0x0001;
     79                                (uint16_t)((fp->idftmd & (I_NRATIO | I_NVBITS)) | 0x0001);
    8080
    8181                        setsr(oldsr);
     
    121121        grp = 0x00FF & (nn >> 8);
    122122
    123         dspbuf[0] = grpdyn[grp] + '0';
     123        dspbuf[0] = (int8_t)(grpdyn[grp] + '0');
    124124        dspbuf[1] = '\0';
    125125
     
    143143        n = nn & 0xFF;
    144144
    145         dspbuf[0] = ebuf[0] = k + '0';
     145        dspbuf[0] = ebuf[0] = (int8_t)(k + '0');
    146146        dspbuf[1] = ebuf[1] = '\0';
    147147
Note: See TracChangeset for help on using the changeset viewer.