Changeset 8973acd in buchla-68k for libcio/putl.c


Ignore:
Timestamp:
07/15/2017 03:12:10 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
ea232f9
Parents:
7d0d347
Message:

No more warnings in libcio.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcio/putl.c

    r7d0d347 r8973acd  
    1212void putl(int32_t w, FILE *stream)
    1313{
    14         if (putc(((w >> 24) & 0xFF), stream) < 0 )
     14        if (putc(((int16_t)(w >> 24) & 0xFF), stream) < 0)
    1515                return;
    1616
    17         if (putc(((w >> 16) & 0xFF), stream) < 0 )
     17        if (putc((int16_t)((w >> 16) & 0xFF), stream) < 0)
    1818                return;
    1919
    20         if (putc(((w >> 8) & 0xFF), stream) < 0 )
     20        if (putc((int16_t)((w >> 8) & 0xFF), stream) < 0)
    2121                return;
    2222
Note: See TracChangeset for help on using the changeset viewer.