Changeset e102943 in buchla-68k for iolib/rawio.c


Ignore:
Timestamp:
07/15/2017 11:33:07 AM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
d18a473
Parents:
dade7a0
Message:

No more warnings in iolib.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • iolib/rawio.c

    rdade7a0 re102943  
    7575        for (i = 0; i < nb; i++) {      /* main read loop */
    7676
    77                 c = BIOS(B_GETC, unit) & 0xFF;  /* get a byte from the unit */
     77                c = (int8_t)(BIOS(B_GETC, unit) & 0xFF);        /* get a byte from the unit */
    7878
    7979                *bp++ = c;      /* add it to the buffer */
     
    104104        while (bc LT nb) {
    105105
    106                 c = BIOS(B_GETC, unit) & 0xFF;
     106                c = (int8_t)(BIOS(B_GETC, unit) & 0xFF);
    107107
    108108                switch (c) {
     
    163163        while (bc LT nb) {
    164164
    165                 c = BIOS(B_GETC, unit) & 0xFF;
     165                c = (int8_t)(BIOS(B_GETC, unit) & 0xFF);
    166166
    167167                switch (c) {
     
    198198        bp = buf;       /* setup buffer pointer */
    199199
    200         while (c = *bp++)       /* send the string, a byte at a time */
     200        while ((c = *bp++))     /* send the string, a byte at a time */
    201201                BIOS(B_PUTC, unit, c);
    202202}
Note: See TracChangeset for help on using the changeset viewer.