Changeset 8973acd in buchla-68k for iolib/dofmt.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
  • iolib/dofmt.c

    r7d0d347 r8973acd  
    3333#define todigit(x)      ((x)+'0')
    3434
    35 int32_t dofmt_(int16_t (*putsub)(int16_t c), int8_t *format, va_list args)
     35int16_t dofmt_(int16_t (*putsub)(int16_t c), int8_t *format, va_list args)
    3636{
    3737        register int16_t fcode;
    3838
    39         int32_t k,
     39        int16_t k,
    4040                n,
    4141                lzero,
     
    6969                        ;
    7070
    71                 if ((n = (int32_t)format - (int32_t)bp)) {
     71                if ((n = (int16_t)(format - bp))) {
    7272
    7373                        count += n;
     
    244244                        }
    245245
    246                         lzero = (int32_t)bp - (int32_t)p + (int32_t)prec;
     246                        lzero = (int16_t)(bp - p + prec);
    247247
    248248                        if (fsharp AND bp NE p)
     
    297297                        lzero = 0;
    298298
    299                 k = (n = (int32_t)p - (int32_t)bp) + (int32_t)(lzero +
     299                k = (n = (int16_t)(p - bp)) + (lzero +
    300300                        (prefix[0] EQ '\0' ? 0 : (prefix[1] EQ '\0' ? 1 : 2)));
    301301
Note: See TracChangeset for help on using the changeset viewer.