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

    r7d0d347 r8973acd  
    3838        while (maxwide--) {
    3939
    40                 if ((cp = index(list, (*gsub)(0))) EQ NULL) {
     40                if ((cp = index(list, (int8_t)(*gsub)(0))) EQ NULL) {
    4141
    4242                        (*gsub)(1);
     
    106106        gsub = getsub;
    107107
    108         while (c = *fmt++) {
     108        while ((c = *fmt++)) {
    109109
    110110                if (c EQ '%') {
     
    180180                                                *(int32_t *)(*args++) = lv;
    181181                                        else
    182                                                 **args++ = lv;
     182                                                **args++ = (int16_t)lv;
    183183                                        ++count;
    184184                                }
     
    220220
    221221                                for (cp = tlist ; (c = *fmt++) != ']' ; )
    222                                         *cp++ = c;
     222                                        *cp++ = (int8_t)c;
    223223
    224224                                *cp = 0;
     
    236236
    237237                                if (!dontdo)
    238                                         cp = *args++;
     238                                        cp = (int8_t *)*args++;
     239                                else
     240                                        cp = NULL;      /* fix compiler warning */
    239241
    240242                                while (maxwide--) {
     
    244246
    245247                                        if (lflag ?
    246                                              (index(tlist, c) NE 0) :
    247                                              (index(tlist, c) EQ 0)) {
     248                                             (index(tlist, (int8_t)c) NE 0) :
     249                                             (index(tlist, (int8_t)c) EQ 0)) {
    248250
    249251                                                (*gsub)(1);     /* unget last character */
     
    252254
    253255                                        if (!dontdo)
    254                                                 *cp++ = c;
     256                                                *cp++ = (int8_t)c;
    255257                                }
    256258
     
    269271                                if (!dontdo) {
    270272
    271                                         *(int8_t *)(*args++) = c;
     273                                        *(int8_t *)(*args++) = (int8_t)c;
    272274                                        ++count;
    273275                                }
Note: See TracChangeset for help on using the changeset viewer.