Changeset 10c7b46 in buchla-68k


Ignore:
Timestamp:
11/12/2017 08:52:13 PM (6 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
a250437
Parents:
b9ddc9a
Message:

Fixed wdfield.c.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ram/wdfield.c

    rb9ddc9a r10c7b46  
    112112        /* make endpoints track */
    113113
    114         *(wsp1 - 1) = *(wsp2 - 1);                      /* lowest point */
    115         *(wsp1 + NUMWPNT) = *(wsp2 + NUMWPNT - 1);      /* highest point */
     114        *(wsp1 - 1) = (uint16_t)*(wsp2 - 1);                    /* lowest point */
     115        *(wsp1 + NUMWPNT) = (uint16_t)*(wsp2 + NUMWPNT - 1);    /* highest point */
    116116
    117117#if     DOUBLED
     
    121121        memcpyw(wsp1, wsp2, NUMWPNT);
    122122
    123         *(wsp1 - 1) = *(wsp2 - 1);                      /* lowest point */
    124         *(wsp1 + NUMWPNT) = *(wsp2 + NUMWPNT - 1);      /* highest point */
     123        *(wsp1 - 1) = (uint16_t)*(wsp2 - 1);                    /* lowest point */
     124        *(wsp1 + NUMWPNT) = (uint16_t)*(wsp2 + NUMWPNT - 1);    /* highest point */
    125125#endif
    126126
     
    221221
    222222                                tv = (ov[j] >> 5) -
    223                                         ((((long)curdif * wdcurtb[k])
     223                                        (int16_t)((((int32_t)curdif * (int32_t)wdcurtb[k])
    224224                                          + WCROUND) / WCSCALE);
    225225
     
    237237
    238238                                tv = (ov[j] >> 5) -
    239                                         ((((long)curdif * wdcurtb[k])
     239                                        (int16_t)((((int32_t)curdif * (int32_t)wdcurtb[k])
    240240                                          + WCROUND) / WCSCALE);
    241241
Note: See TracChangeset for help on using the changeset viewer.