Changeset 7258c6a in buchla-68k for lib700/micons.c


Ignore:
Timestamp:
07/09/2017 04:45:34 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
8618599
Parents:
0292fbb
Message:

Use standard integer types.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib700/micons.c

    r0292fbb r7258c6a  
    3535*/
    3636
    37 short micons(short wi)
     37int16_t micons(int16_t wi)
    3838{
    39         return((short)( ((wi << 8) & 0xFF00) | ((wi >> 8) & 0x00FF) ) );
     39        return((int16_t)( ((wi << 8) & 0xFF00) | ((wi >> 8) & 0x00FF) ) );
    4040}
    4141
     
    4646*/
    4747
    48 int miconi(int wi)
     48int16_t miconi(int16_t wi)
    4949{
    50         if (sizeof (int) == 4)
     50        if (sizeof (int16_t) == 4)
    5151                return( ((wi << 24) & 0xFF000000L) | ((wi << 8) & 0x00FF0000L) |
    5252                        ((wi >> 8) & 0x0000FF00L) | ((wi >> 24) & 0x000000FFL) );
     
    6161*/
    6262
    63 long miconl(long wi)
     63int32_t miconl(int32_t wi)
    6464{
    6565        return( ((wi << 24) & 0xFF000000L) | ((wi << 8) & 0x00FF0000L) |
Note: See TracChangeset for help on using the changeset viewer.