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

    rdade7a0 re102943  
    3232#define tonum(x)        ((x)-'0')
    3333#define todigit(x)      ((x)+'0')
    34 #define max(a,b)        ((a)>(b)?(a):(b))
    35 #define min(a,b)        ((a)<(b)?(a):(b))
    3634
    3735int32_t dofmt_(int16_t (*putsub)(int16_t c), int8_t *format, va_list args)
     
    7169                        ;
    7270
    73                 if (n = (int32_t)format - (int32_t)bp) {
     71                if ((n = (int32_t)format - (int32_t)bp)) {
    7472
    7573                        count += n;
     
    168166                fixed:
    169167
    170                         if (prec < 0)
     168                        if (prec < 0) {
    171169                                if (flzero AND width > 0)
    172170                                        prec = width;
    173171                                else
    174172                                        prec = 1;
     173                        }
    175174
    176175                        if (length)
     
    265264
    266265                default:
    267                         buf[0] = fcode;
     266                        buf[0] = (int8_t)fcode;
    268267                        goto c_merge;
    269268
    270269                case 'c':
    271                         buf[0] = va_arg(args, int16_t);
     270                        buf[0] = (int8_t)va_arg(args, int16_t);
    272271
    273272                c_merge:
Note: See TracChangeset for help on using the changeset viewer.