Changeset f261cc8 in buchla-68k for libcio/putw.c


Ignore:
Timestamp:
07/16/2017 12:10:45 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
1c4f9be
Parents:
0c06bc5
Message:

Minor cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcio/putw.c

    r0c06bc5 rf261cc8  
    1212void putw(int32_t w, FILE *stream)
    1313{
    14         if (putc(((w >> 8) & 0xFF), stream) < 0 )
     14        if (putc((int16_t)((w >> 8) & 0xFF), stream) < 0 )
    1515                return;
    1616
    17         putc((w & 0xFF), stream);
     17        putc((int16_t)(w & 0xFF), stream);
    1818}
    1919
Note: See TracChangeset for help on using the changeset viewer.