Changeset 8973acd in buchla-68k for libcio/putc.c
- Timestamp:
- 07/15/2017 03:12:10 PM (7 years ago)
- Branches:
- master
- Children:
- ea232f9
- Parents:
- 7d0d347
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcio/putc.c
r7d0d347 r8973acd 59 59 if (data EQ -1) { /* just flushing, not adding data */ 60 60 61 ptr->_flags &= ~_DIRTY;61 ptr->_flags = (uint8_t)(ptr->_flags & ~_DIRTY); 62 62 ptr->_bend = ptr->_bp = NULL; 63 63 return(0); … … 79 79 ptr->_flags |= _DIRTY; 80 80 81 return((*ptr->_bp++ = data) & 0x00FF);81 return((*ptr->_bp++ = (int8_t)data) & 0x00FF); 82 82 } 83 83 … … 134 134 return(flush_(ptr, c & 0xFF)); 135 135 136 return((*ptr->_bp++ = c) & 0xFF);136 return((*ptr->_bp++ = (int8_t)c) & 0xFF); 137 137 } 138 138
Note:
See TracChangeset
for help on using the changeset viewer.