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

    r8c8b4e5 r432327d  
    1818uint16_t addfpu(uint16_t t, int16_t k)
    1919{
    20         register int16_t x, z;
    21         register uint16_t y;
     20        uint16_t x, y;
     21        int32_t z;
    2222
    2323        x = fromfpu(t);
     
    2727
    2828        y = t;
    29         z = x + k;
     29        z = (int32_t)x + k;
    3030
    3131        if (z GE MAXSEGT)
     
    4646uint16_t subfpu(uint16_t t, int16_t k)
    4747{
    48         register int16_t x, z;
    49         register uint16_t y;
     48        uint16_t x, y;
     49        int32_t z;
    5050
    5151        x = fromfpu(t);
     
    5555
    5656        y = t;
    57         z = x - k;
     57        z = (int32_t)x - k;
    5858
    5959        if (z LE 1)
Note: See TracChangeset for help on using the changeset viewer.