Changeset 8973acd in buchla-68k for libcio/putc.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/putc.c

    r7d0d347 r8973acd  
    5959        if (data EQ -1) {       /* just flushing, not adding data */
    6060
    61                 ptr->_flags &= ~_DIRTY;
     61                ptr->_flags = (uint8_t)(ptr->_flags & ~_DIRTY);
    6262                ptr->_bend = ptr->_bp = NULL;
    6363                return(0);
     
    7979        ptr->_flags |= _DIRTY;
    8080
    81         return((*ptr->_bp++ = data) & 0x00FF);
     81        return((*ptr->_bp++ = (int8_t)data) & 0x00FF);
    8282}
    8383
     
    134134                return(flush_(ptr, c & 0xFF));
    135135
    136         return((*ptr->_bp++ = c) & 0xFF);
     136        return((*ptr->_bp++ = (int8_t)c) & 0xFF);
    137137}
    138138
Note: See TracChangeset for help on using the changeset viewer.